Skip to content

Instantly share code, notes, and snippets.

@manveru
Created September 10, 2019 10:46
Show Gist options
  • Save manveru/6358ae1d4c00bbf0dd0d94a88bd098a2 to your computer and use it in GitHub Desktop.
Save manveru/6358ae1d4c00bbf0dd0d94a88bd098a2 to your computer and use it in GitHub Desktop.
# Generated by crate2nix 0.5.1 with the command:
# "generate" "-o" "Cargo.nix"
# See https://github.com/kolloch/crate2nix for more info.
{ pkgs? import <nixpkgs> { config = {}; },
lib? pkgs.lib,
callPackage? pkgs.callPackage,
stdenv? pkgs.stdenv,
buildRustCrate? pkgs.buildRustCrate,
fetchurl? pkgs.fetchurl,
fetchCrate? pkgs.fetchCrate,
# The features to enable for the root_crate or the workspace_members.
rootFeatures? ["default"]}:
rec {
#
# "public" attributes that we attempt to keep stable with new versions of crate2nix.
#
rootCrate = {
packageId = "js-chain-libs 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs)";
# Use this attribute to refer to the derivation building your root crate package.
# You can override the features with rootCrate.build.override { features = [ "default" "feature1" ... ]; }.
build = buildRustCrateWithFeatures {
packageId = "js-chain-libs 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs)";
features = rootFeatures;
};
};
root_crate =
builtins.trace "root_crate is deprecated since crate2nix 0.4. Please use rootCrate instead." rootCrate.build;
# Refer your crate build derivation by name here.
# You can override the features with
# workspaceMembers."${crateName}".build.override { features = [ "default" "feature1" ... ]; }.
workspaceMembers = {
"js-chain-libs" = {
packageId = "js-chain-libs 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs)";
build = buildRustCrateWithFeatures {
packageId = "js-chain-libs 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs)";
features = rootFeatures;
};
};
};
workspace_members =
builtins.trace
"workspace_members is deprecated in crate2nix 0.4. Please use workspaceMembers instead."
lib.mapAttrs (n: v: v.build) workspaceMembers;
#
# "private" attributes that may change in every new version of crate2nix.
#
# Build and dependency information for crates.
# Many of the fields are passed one-to-one to buildRustCrate.
#
# Noteworthy:
# * `crateBin = [{name = ","; path = ",";}];`: a hack to disable building the binary.
# * `dependencies`/`buildDependencies`: similar to the corresponding fields for buildRustCrate.
# but with additional information which is used during dependency/feature resolution.
# * `resolvedDependencies`: the selected default features reported by cargo - only included for debugging.
crates = {
"autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "autocfg";
version = "0.1.6";
edition = "2015";
sha256 = "1yzawpsmrcy3x60i59hfwwg7mfdwc74199m2lgkc4vam5ijy8mz7";
authors = [
"Josh Stone <cuviper@gmail.com>"
];
features = {
};
};
"backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "backtrace";
version = "0.3.37";
edition = "2018";
sha256 = "0xakny6j2yhws5wdys6m996sdkwz74d61rskvxccgfhlfdf9ghsf";
authors = [
"The Rust Project Developers"
];
dependencies = {
"backtrace-sys" = {
packageId = "backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"libc" = {
packageId = "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"rustc-demangle" = "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "std" "libunwind" "libbacktrace" "dladdr" "dbghelp" ];
"gimli-symbolize" = [ "addr2line" "findshlibs" "memmap" "goblin" ];
"libbacktrace" = [ "backtrace-sys" ];
"rustc-dep-of-std" = [ "backtrace-sys/rustc-dep-of-std" "cfg-if/rustc-dep-of-std" "core" "compiler_builtins" "libc/rustc-dep-of-std" "rustc-demangle/rustc-dep-of-std" ];
"serialize-rustc" = [ "rustc-serialize" ];
"serialize-serde" = [ "serde" ];
"verify-winapi" = [ "winapi/dbghelp" "winapi/handleapi" "winapi/libloaderapi" "winapi/minwindef" "winapi/processthreadsapi" "winapi/synchapi" "winapi/winbase" "winapi/winnt" ];
};
resolvedDefaultFeatures = [ "backtrace-sys" "dbghelp" "default" "dladdr" "libbacktrace" "libunwind" "std" ];
};
"backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "backtrace-sys";
version = "0.1.31";
edition = "2015";
sha256 = "1gv41cypl4y5r32za4gx2fks43d76sp1r3yb5524i4gs50lrkypv";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
dependencies = {
"libc" = {
packageId = "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
buildDependencies = {
"cc" = "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"rustc-dep-of-std" = [ "core" "compiler_builtins" ];
};
};
"bech32 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "bech32";
version = "0.6.0";
edition = "2015";
sha256 = "0bnlc2bg949h3my2kg0ap2l78inipnmf6dc9klxlkjr8a0bfpvr0";
authors = [
"Clark Moody"
];
features = {
};
};
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "bitflags";
version = "1.1.0";
edition = "2015";
sha256 = "1iwa4jrqcf4lnbwl562a3lx3r0jkh1j88b219bsqvbm4sni67dyv";
authors = [
"The Rust Project Developers"
];
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "block-buffer";
version = "0.7.3";
edition = "2015";
sha256 = "0kryp6l1ia1f5vxmmzggx0pnc5zqxm6m9m9wvh5y0b3wdcj5xm1v";
authors = [
"RustCrypto Developers"
];
dependencies = {
"block-padding" = "block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)";
"byte-tools" = "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
"byteorder" = {
packageId = "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"generic-array" = "generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "block-padding";
version = "0.1.4";
edition = "2015";
sha256 = "08xvr2spxn614x5scn1wsv8a8daslmj1b3n94n644ygb13gsq8zq";
authors = [
"RustCrypto Developers"
];
dependencies = {
"byte-tools" = "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "bumpalo";
version = "2.6.0";
edition = "2018";
sha256 = "1nhm5nfq2wakcbjryi172rrwvy8b2gpms64qafwpzpxib2vswln5";
authors = [
"Nick Fitzgerald <fitzgen@gmail.com>"
];
features = {
"collections" = [ "std" ];
"default" = [ "collections" "std" ];
};
resolvedDefaultFeatures = [ "collections" "default" "std" ];
};
"byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "byte-tools";
version = "0.3.1";
edition = "2015";
sha256 = "01hfp59bxq74glhfmhvm9wma2migq2kfmvcvqq5pssk5k52g8ja0";
authors = [
"RustCrypto Developers"
];
features = {
};
};
"byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "byteorder";
version = "1.3.2";
edition = "2015";
sha256 = "099fxwc79ncpcl8dgg9hql8gznz11a3sjs7pai0mg6w8r05khvdx";
authors = [
"Andrew Gallant <jamslam@gmail.com>"
];
features = {
"default" = [ "std" ];
};
resolvedDefaultFeatures = [ "i128" ];
};
"cardano-legacy-address 0.1.1 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/cardano-legacy-address)"
= rec {
crateName = "cardano-legacy-address";
version = "0.1.1";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/cardano-legacy-address);
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
];
dependencies = {
"cbor_event" = "cbor_event 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)";
"cryptoxide" = "cryptoxide 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
"ed25519-bip32" = "ed25519-bip32 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"cbor_event 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "cbor_event";
version = "2.1.3";
edition = "2015";
sha256 = "1hg7rpy47wzjgia8i9rqdxb0kgsh6z8l9p6p4zykpmgn2qn89fwq";
authors = [
"Nicolas Di Prima <nicolas@primetype.co.uk>"
"Vincent Hanquez <vincent@typed.io>"
];
features = {
};
};
"cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "cc";
version = "1.0.45";
edition = "2018";
# Hack to suppress building binaries
crateBin = [{name = ","; path = ",";}];
sha256 = "0qhw9k5av9x6yvv4jfrji576wy90vgdnr76cifs8xqm70scdl2sm";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
features = {
"parallel" = [ "num_cpus" "jobserver" ];
};
};
"cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "cfg-if";
version = "0.1.9";
edition = "2015";
sha256 = "13g9p2mc5b2b5wn716fwvilzib376ycpkgk868yxfp16jzix57p7";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
features = {
};
};
"chain-addr 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-addr)"
= rec {
crateName = "chain-addr";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-addr);
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
];
dependencies = {
"bech32" = "bech32 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)";
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"chain-core" = "chain-core 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-core)";
"chain-crypto" = "chain-crypto 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-crypto)";
"cryptoxide" = "cryptoxide 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"property-test-api" = [ "quickcheck" ];
};
};
"chain-core 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-core)"
= rec {
crateName = "chain-core";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-core);
authors = [
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Eelco Dolstra <edolstra@gmail.com>"
"Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"
"Alexander Vershilov <alexander.vershilov@gmail.com>"
];
dependencies = {
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"property-test-api" = [ "quickcheck" ];
};
};
"chain-crypto 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-crypto)"
= rec {
crateName = "chain-crypto";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-crypto);
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
];
dependencies = {
"bech32" = "bech32 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)";
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"cryptoxide" = "cryptoxide 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
"curve25519-dalek" = "curve25519-dalek 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
"digest" = "digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)";
"ed25519-bip32" = "ed25519-bip32 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
"ed25519-dalek" = "ed25519-dalek 1.0.0-pre.1 (registry+https://github.com/rust-lang/crates.io-index)";
"generic-array" = "generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_core" = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
"sha2" = "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"property-test-api" = [ "quickcheck" "rand_chacha" ];
};
};
"chain-impl-mockchain 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-impl-mockchain)"
= rec {
crateName = "chain-impl-mockchain";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-impl-mockchain);
authors = [
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Eelco Dolstra <edolstra@gmail.com>"
"Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"
"Alexander Vershilov <alexander.vershilov@gmail.com>"
];
dependencies = {
"cardano-legacy-address" = "cardano-legacy-address 0.1.1 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/cardano-legacy-address)";
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"chain-addr" = "chain-addr 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-addr)";
"chain-core" = "chain-core 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-core)";
"chain-crypto" = "chain-crypto 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-crypto)";
"chain-storage" = "chain-storage 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-storage)";
"chain-time" = "chain-time 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-time)";
"custom_error" = "custom_error 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)";
"imhamt" = "imhamt 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/imhamt)";
"rand_core" = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_os" = "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)";
"strum" = "strum 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)";
"strum_macros" = "strum_macros 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"property-test-api" = [ "quickcheck" ];
};
};
"chain-storage 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-storage)"
= rec {
crateName = "chain-storage";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-storage);
authors = [
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Eelco Dolstra <edolstra@gmail.com>"
"Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"
"Alexander Vershilov <alexander.vershilov@gmail.com>"
];
dependencies = {
"chain-core" = "chain-core 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-core)";
};
features = {
"test-api" = [ "rand_core" ];
};
};
"chain-time 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-time)"
= rec {
crateName = "chain-time";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/chain-time);
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
];
features = {
};
};
"clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "clear_on_drop";
version = "0.2.3";
edition = "2015";
sha256 = "03xx03c4nk8plrfj8llzjxm924ykilr8a8qkma46n8fm36pz644l";
authors = [
"Cesar Eduardo Barros <cesarb@cesarb.eti.br>"
];
buildDependencies = {
"cc" = "cc 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"nightly" = [ "no_cc" ];
};
resolvedDefaultFeatures = [ "no_cc" ];
};
"cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "cloudabi";
version = "0.0.3";
edition = "2015";
sha256 = "1z9lby5sr6vslfd14d6igk03s7awf91mxpsfmsp3prxbxlk0x7h5";
libPath = "cloudabi.rs";
authors = [
"Nuxi (https://nuxi.nl/) and contributors"
];
dependencies = {
"bitflags" = {
packageId = "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
};
features = {
"default" = [ "bitflags" ];
};
resolvedDefaultFeatures = [ "bitflags" "default" ];
};
"console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "console_error_panic_hook";
version = "0.1.6";
edition = "2015";
sha256 = "0sp9zmbf3xr34yx94y8fx024dw4jn36jk3sx05bvg10cfbw9707d";
authors = [
"Nick Fitzgerald <fitzgen@gmail.com>"
];
dependencies = {
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"wasm-bindgen" = "wasm-bindgen 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"cryptoxide 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "cryptoxide";
version = "0.1.2";
edition = "2015";
sha256 = "1fvq481n6za1wkymzfmrk7d9pipfn23xh2n8z6pifjhk52kzxpfl";
authors = [
"Vincent Hanquez <vincent@typed.io>"
"Nicolas Di Prima <nicolas@prime-type.co.uk>"
"The Rust-Crypto Project Developers"
];
features = {
};
};
"curve25519-dalek 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "curve25519-dalek";
version = "1.2.3";
edition = "2015";
sha256 = "07668b5k2rrxp7bc51h4nd2qfh9zb468cq5z71irk4554i050x3f";
authors = [
"Isis Lovecruft <isis@patternsinthevoid.net>"
"Henry de Valence <hdevalence@hdevalence.ca>"
];
dependencies = {
"byteorder" = {
packageId = "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
features = [ "i128" ];
};
"clear_on_drop" = "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
"digest" = {
packageId = "digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"subtle" = {
packageId = "subtle 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
buildDependencies = {
"byteorder" = {
packageId = "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
features = [ "i128" ];
};
"clear_on_drop" = "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
"digest" = {
packageId = "digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"subtle" = {
packageId = "subtle 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"avx2_backend" = [ "simd_backend" ];
"default" = [ "std" "u64_backend" ];
"nightly" = [ "subtle/nightly" "clear_on_drop/nightly" ];
"simd_backend" = [ "nightly" "u64_backend" "packed_simd" ];
"std" = [ "alloc" "subtle/std" "rand_core/std" ];
};
resolvedDefaultFeatures = [ "alloc" "default" "rand_core" "std" "subtle" "u64_backend" ];
};
"custom_error 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "custom_error";
version = "1.7.1";
edition = "2018";
sha256 = "1h988ys3q4cblc9gf6rzi5417yygl937bws7fd7f7yjr0ia70ayl";
authors = [
"lovasoa"
];
features = {
};
};
"digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "digest";
version = "0.8.1";
edition = "2015";
sha256 = "18jzwdsfl90bzhbk5ny4rgakhwn3l7pqk2mmqvl4ccb0qy4lhbyr";
authors = [
"RustCrypto Developers"
];
dependencies = {
"generic-array" = "generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"dev" = [ "blobby" ];
};
resolvedDefaultFeatures = [ "std" ];
};
"ed25519-bip32 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "ed25519-bip32";
version = "0.1.1";
edition = "2018";
sha256 = "0knk32xnavgvlzy8s5hn0yzsa6z1xdk7b793jkaczz80arl0v7xi";
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
"Nicolas Di Prima <nicolas.diprima@iohk.io>"
];
dependencies = {
"cryptoxide" = "cryptoxide 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"ed25519-dalek 1.0.0-pre.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "ed25519-dalek";
version = "1.0.0-pre.1";
edition = "2015";
sha256 = "1rd00x7aagvivj4z8a8yzdkxsy2vn7zkkwh7zgysajyf055qvipd";
authors = [
"isis lovecruft <isis@patternsinthevoid.net>"
];
dependencies = {
"clear_on_drop" = "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
"curve25519-dalek" = {
packageId = "curve25519-dalek 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"failure" = {
packageId = "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"rand" = {
packageId = "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "i128_support" ];
};
"sha2" = {
packageId = "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"alloc" = [ "curve25519-dalek/alloc" ];
"asm" = [ "sha2/asm" ];
"avx2_backend" = [ "curve25519-dalek/avx2_backend" ];
"default" = [ "std" "u64_backend" ];
"nightly" = [ "curve25519-dalek/nightly" "rand/nightly" "clear_on_drop/nightly" ];
"std" = [ "curve25519-dalek/std" "rand/std" "sha2/std" ];
"u32_backend" = [ "curve25519-dalek/u32_backend" ];
"u64_backend" = [ "curve25519-dalek/u64_backend" ];
"yolocrypto" = [ "curve25519-dalek/yolocrypto" ];
};
resolvedDefaultFeatures = [ "curve25519-dalek" "default" "rand" "sha2" "std" "u64_backend" ];
};
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "failure";
version = "0.1.5";
edition = "2015";
sha256 = "1msaj1c0fg12dzyf4fhxqlx1gfx41lj2smdjmkc9hkrgajk2g3kx";
authors = [
"Without Boats <boats@mozilla.com>"
];
dependencies = {
"backtrace" = {
packageId = "backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"failure_derive" = {
packageId = "failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
};
features = {
"default" = [ "std" "derive" ];
"derive" = [ "failure_derive" ];
"std" = [ "backtrace" ];
};
resolvedDefaultFeatures = [ "backtrace" "default" "derive" "failure_derive" "std" ];
};
"failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "failure_derive";
version = "0.1.5";
edition = "2015";
sha256 = "1wzk484b87r4qszcvdl2bkniv5ls4r2f2dshz7hmgiv6z4ln12g0";
procMacro = true;
authors = [
"Without Boats <woboats@gmail.com>"
];
dependencies = {
"proc-macro2" = "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)";
"synstructure" = "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "fake-simd";
version = "0.1.2";
edition = "2015";
sha256 = "1a0f1j66nkwfy17s06vm2bn9vh8vy8llcijfhh9m10p58v08661a";
authors = [
"The Rust-Crypto Project Developers"
];
features = {
};
};
"fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "fuchsia-cprng";
version = "0.1.1";
edition = "2018";
sha256 = "07apwv9dj716yjlcj29p94vkqn5zmfh7hlrqvrjx3wzshphc95h9";
authors = [
"Erick Tryzelaar <etryzelaar@google.com>"
];
features = {
};
};
"generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "generic-array";
version = "0.12.3";
edition = "2015";
sha256 = "1b6bvl1zsh5v9d85szkqfq4sw33xsw03mhchjk3zwxs29psg3nns";
libName = "generic_array";
authors = [
"Bartłomiej Kamiński <fizyk20@gmail.com>"
"Aaron Trent <novacrazy@gmail.com>"
];
dependencies = {
"typenum" = "typenum 1.11.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "heck";
version = "0.3.1";
edition = "2015";
sha256 = "1q7vmnlh62kls6cvkfhbcacxkawaznaqa5wwm9dg1xkcza846c3d";
authors = [
"Without Boats <woboats@gmail.com>"
];
dependencies = {
"unicode-segmentation" = "unicode-segmentation 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"imhamt 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/imhamt)"
= rec {
crateName = "imhamt";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./chain-libs/imhamt);
authors = [
"Vincent Hanquez <vincent.hanquez@iohk.io>"
];
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "itoa";
version = "0.4.4";
edition = "2015";
sha256 = "1fqc34xzzl2spfdawxd9awhzl0fwf1y6y4i94l8bq8rfrzd90awl";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
features = {
"default" = [ "std" ];
};
resolvedDefaultFeatures = [ "default" "std" ];
};
"js-chain-libs 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs)"
= rec {
crateName = "js-chain-libs";
version = "0.1.0";
edition = "2018";
src = (builtins.filterSource sourceFilter ./.);
authors = [
"Enzo Cioppettini <ecioppettini@atixlabs.com>"
];
dependencies = {
"bech32" = "bech32 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)";
"chain-addr" = "chain-addr 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-addr)";
"chain-core" = "chain-core 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-core)";
"chain-crypto" = "chain-crypto 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-crypto)";
"chain-impl-mockchain" = "chain-impl-mockchain 0.1.0 (path+file:///big/github/input-output-hk/js-chain-libs/chain-libs/chain-impl-mockchain)";
"clear_on_drop" = {
packageId = "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "no_cc" ];
};
"console_error_panic_hook" = {
packageId = "console_error_panic_hook 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"js-sys" = "js-sys 0.3.27 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_os" = {
packageId = "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "wasm-bindgen" ];
};
"serde" = {
packageId = "serde 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "derive" ];
};
"wasm-bindgen" = {
packageId = "wasm-bindgen 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "serde-serialize" ];
};
};
features = {
"default" = [ "console_error_panic_hook" ];
};
resolvedDefaultFeatures = [ "console_error_panic_hook" "default" ];
};
"js-sys 0.3.27 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "js-sys";
version = "0.3.27";
edition = "2018";
sha256 = "1gfj23j7nj8nz245gkf0fymrbfxgpfr0hx3irshq6h5n7zdshgbl";
authors = [
"The wasm-bindgen Developers"
];
dependencies = {
"wasm-bindgen" = "wasm-bindgen 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "lazy_static";
version = "1.4.0";
edition = "2015";
sha256 = "13h6sdghdcy7vcqsm2gasfw3qg7ssa0fl3sw7lq6pdkbk52wbyfr";
authors = [
"Marvin Löbel <loebel.marvin@gmail.com>"
];
features = {
"spin_no_std" = [ "spin" ];
};
};
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "libc";
version = "0.2.62";
edition = "2015";
sha256 = "1vsb4pyn6gl6sri6cv5hin5wjfgk7lk2bshzmxb1xnkckjhz4gbx";
authors = [
"The Rust Project Developers"
];
features = {
"default" = [ "std" ];
"rustc-dep-of-std" = [ "align" "rustc-std-workspace-core" ];
"use_std" = [ "std" ];
};
resolvedDefaultFeatures = [ "default" "std" ];
};
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "log";
version = "0.4.8";
edition = "2015";
sha256 = "0wvzzzcn89dai172rrqcyz06pzldyyy0lf0w71csmn206rdpnb15";
authors = [
"The Rust Project Developers"
];
dependencies = {
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"kv_unstable_sval" = [ "kv_unstable" "sval/fmt" ];
};
};
"opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "opaque-debug";
version = "0.2.3";
edition = "2015";
sha256 = "1did2dvmc88chf7qvs3c0qj5filfp6q75rmf2x9ljwlbwywv8lj5";
authors = [
"RustCrypto Developers"
];
features = {
};
};
"proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "proc-macro2";
version = "0.4.30";
edition = "2015";
sha256 = "0iifv51wrm6r4r2gghw6rray3nv53zcap355bbz1nsmbhj5s09b9";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
dependencies = {
"unicode-xid" = "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "proc-macro" ];
};
resolvedDefaultFeatures = [ "default" "proc-macro" ];
};
"proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "proc-macro2";
version = "1.0.3";
edition = "2018";
sha256 = "0qv29h6pz6n0b4qi8w240l3xppsw26bk5ga2vcjk3nhji0nsplwk";
libName = "proc_macro2";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
dependencies = {
"unicode-xid" = "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "proc-macro" ];
};
resolvedDefaultFeatures = [ "default" "proc-macro" ];
};
"quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "quote";
version = "0.6.13";
edition = "2015";
sha256 = "1hrvsin40i4q8swrhlj9057g7nsp0lg02h8zbzmgz14av9mzv8g8";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"proc-macro2" = {
packageId = "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"default" = [ "proc-macro" ];
"proc-macro" = [ "proc-macro2/proc-macro" ];
};
resolvedDefaultFeatures = [ "default" "proc-macro" "proc-macro2" ];
};
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "quote";
version = "1.0.2";
edition = "2018";
sha256 = "0r7030w7dymarn92gjgm02hsm04fwsfs6f1l20wdqiyrm9z8rs5q";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"proc-macro2" = {
packageId = "proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"default" = [ "proc-macro" ];
"proc-macro" = [ "proc-macro2/proc-macro" ];
};
resolvedDefaultFeatures = [ "default" "proc-macro" "proc-macro2" ];
};
"rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand";
version = "0.6.5";
edition = "2015";
sha256 = "0zbck48159aj8zrwzf80sd9xxh96w4f4968nshwjpysjvflimvgb";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
dependencies = {
"libc" = {
packageId = "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
target = target."unix";
};
"rand_chacha" = "rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_core" = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_hc" = "rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_isaac" = "rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_jitter" = "rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_os" = {
packageId = "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"rand_pcg" = "rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
"rand_xorshift" = "rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
"winapi" = {
packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)";
target = target."windows";
features = [ "minwindef" "ntsecapi" "profileapi" "winnt" ];
};
};
buildDependencies = {
"autocfg" = "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"alloc" = [ "rand_core/alloc" ];
"default" = [ "std" ];
"nightly" = [ "simd_support" ];
"serde1" = [ "rand_core/serde1" "rand_isaac/serde1" "rand_xorshift/serde1" ];
"simd_support" = [ "packed_simd" ];
"std" = [ "rand_core/std" "alloc" "rand_os" "rand_jitter/std" ];
"stdweb" = [ "rand_os/stdweb" ];
"wasm-bindgen" = [ "rand_os/wasm-bindgen" ];
};
resolvedDefaultFeatures = [ "alloc" "default" "i128_support" "rand_core" "rand_jitter" "rand_os" "std" ];
};
"rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_chacha";
version = "0.1.1";
edition = "2015";
sha256 = "0xnxm4mjd7wjnh18zxc1yickw58axbycp35ciraplqdfwn1gffwi";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
dependencies = {
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
buildDependencies = {
"autocfg" = "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_core";
version = "0.3.1";
edition = "2015";
sha256 = "0q0ssgpj9x5a6fda83nhmfydy7a6c0wvxm0jhncsmjx8qp8gw91m";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
dependencies = {
"rand_core" = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"alloc" = [ "rand_core/alloc" ];
"default" = [ "std" ];
"serde1" = [ "rand_core/serde1" ];
"std" = [ "rand_core/std" ];
};
resolvedDefaultFeatures = [ "default" "rand_core" "std" ];
};
"rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_core";
version = "0.4.2";
edition = "2015";
sha256 = "18zpzwn4bl7lp9f36iacy8mvdnfrhfmzsl35gmln98dcindff2ly";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
features = {
"serde1" = [ "serde" "serde_derive" ];
"std" = [ "alloc" ];
};
resolvedDefaultFeatures = [ "alloc" "std" ];
};
"rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_hc";
version = "0.1.0";
edition = "2015";
sha256 = "05agb75j87yp7y1zk8yf7bpm66hc0673r3dlypn0kazynr6fdgkz";
authors = [
"The Rand Project Developers"
];
dependencies = {
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
};
};
"rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_isaac";
version = "0.1.1";
edition = "2015";
sha256 = "10hhdh5b5sa03s6b63y9bafm956jwilx41s71jbrzl63ccx8lxdq";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
dependencies = {
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"serde1" = [ "serde" "serde_derive" "rand_core/serde1" ];
};
};
"rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_jitter";
version = "0.1.4";
edition = "2015";
sha256 = "13nr4h042ab9l7qcv47bxrxw3gkf2pc3cni6c9pyi4nxla0mm7b6";
authors = [
"The Rand Project Developers"
];
dependencies = {
"libc" = {
packageId = "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
target = ((target."os" == "macos") || (target."os" == "ios"));
};
"rand_core" = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)";
"winapi" = {
packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)";
target = (target."os" == "windows");
features = [ "profileapi" ];
};
};
features = {
"std" = [ "rand_core/std" ];
};
resolvedDefaultFeatures = [ "rand_core" "std" ];
};
"rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_os";
version = "0.1.3";
edition = "2015";
sha256 = "0ywwspizgs9g8vzn6m5ix9yg36n15119d6n792h7mk4r5vs0ww4j";
authors = [
"The Rand Project Developers"
];
dependencies = {
"cloudabi" = {
packageId = "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
target = (target."os" == "cloudabi");
};
"fuchsia-cprng" = {
packageId = "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)";
target = (target."os" == "fuchsia");
};
"libc" = {
packageId = "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)";
target = target."unix";
};
"rand_core" = {
packageId = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "std" ];
};
"rdrand" = {
packageId = "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)";
target = (target."env" == "sgx");
};
"wasm-bindgen" = {
packageId = "wasm-bindgen 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
target = (stdenv.hostPlatform.config == "wasm32-unknown-unknown");
};
"winapi" = {
packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)";
target = target."windows";
features = [ "minwindef" "ntsecapi" "winnt" ];
};
};
features = {
};
resolvedDefaultFeatures = [ "wasm-bindgen" ];
};
"rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_pcg";
version = "0.1.2";
edition = "2015";
sha256 = "04qgi2ai2z42li5h4aawvxbpnlqyjfnipz9d6k73mdnl6p1xq938";
authors = [
"The Rand Project Developers"
];
dependencies = {
"rand_core" = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)";
};
buildDependencies = {
"autocfg" = "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"serde1" = [ "serde" "serde_derive" ];
};
};
"rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rand_xorshift";
version = "0.1.1";
edition = "2015";
sha256 = "0v365c4h4lzxwz5k5kp9m0661s0sss7ylv74if0xb4svis9sswnn";
authors = [
"The Rand Project Developers"
"The Rust Project Developers"
];
dependencies = {
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"serde1" = [ "serde" "serde_derive" ];
};
};
"rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rdrand";
version = "0.4.0";
edition = "2015";
sha256 = "15hrcasn0v876wpkwab1dwbk9kvqwrb3iv4y4dibb6yxnfvzwajk";
authors = [
"Simonas Kazlauskas <rdrand@kazlauskas.me>"
];
dependencies = {
"rand_core" = {
packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
};
features = {
"default" = [ "std" ];
};
resolvedDefaultFeatures = [ "default" "std" ];
};
"rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "rustc-demangle";
version = "0.1.16";
edition = "2015";
sha256 = "0zmn448d0f898ahfkz7cir0fi0vk84dabjpw84mk6a1r6nf9vzmi";
authors = [
"Alex Crichton <alex@alexcrichton.com>"
];
features = {
"rustc-dep-of-std" = [ "core" "compiler_builtins" ];
};
};
"ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "ryu";
version = "1.0.0";
edition = "2015";
sha256 = "0hysqba7hi31xw1jka8jh7qb4m9fx5l6vik55wpc3rpsg46cwgbf";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
features = {
};
};
"serde 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "serde";
version = "1.0.100";
edition = "2015";
sha256 = "1wlgfj5hc7yz7x1dmw210z26i1m47d9fp588d0rcl759gifiwncb";
authors = [
"Erick Tryzelaar <erick.tryzelaar@gmail.com>"
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"serde_derive" = {
packageId = "serde_derive 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
};
features = {
"default" = [ "std" ];
"derive" = [ "serde_derive" ];
};
resolvedDefaultFeatures = [ "default" "derive" "serde_derive" "std" ];
};
"serde_derive 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "serde_derive";
version = "1.0.100";
edition = "2015";
sha256 = "1qm470s8694qcn2yfm08cabdlsj4h50s8ipcx8f3jyf7540hz1j3";
procMacro = true;
authors = [
"Erick Tryzelaar <erick.tryzelaar@gmail.com>"
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"proc-macro2" = "proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = {
packageId = "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "visit" ];
};
};
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "serde_json";
version = "1.0.40";
edition = "2015";
sha256 = "1wf8lkisjvyg4ghp2fwm3ysymjy66l030l8d7p6033wiayfzpyh3";
authors = [
"Erick Tryzelaar <erick.tryzelaar@gmail.com>"
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"itoa" = "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)";
"ryu" = "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)";
"serde" = "serde 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"preserve_order" = [ "indexmap" ];
};
resolvedDefaultFeatures = [ "default" ];
};
"sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "sha2";
version = "0.8.0";
edition = "2015";
sha256 = "0jhg56v7m6mj3jb857np4qvr72146garnabcgdk368fm0csfs1sq";
authors = [
"RustCrypto Developers"
];
dependencies = {
"block-buffer" = "block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)";
"digest" = "digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)";
"fake-simd" = "fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)";
"opaque-debug" = "opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"asm" = [ "sha2-asm" ];
"default" = [ "std" ];
"std" = [ "digest/std" ];
};
resolvedDefaultFeatures = [ "default" "digest" "std" ];
};
"strum 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "strum";
version = "0.15.0";
edition = "2015";
sha256 = "09xk2knmfxmwsgh302dcv3znm3rlj87zyb5xv5blki3053qbdbz8";
authors = [
"Peter Glotfelty <peglotfe@microsoft.com>"
];
features = {
};
};
"strum_macros 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "strum_macros";
version = "0.15.0";
edition = "2015";
sha256 = "1wfqcbkkqf541rxswp780d136bvyhg3b829gia570096fkm534sf";
procMacro = true;
authors = [
"Peter Glotfelty <peglotfe@microsoft.com>"
];
dependencies = {
"heck" = "heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)";
"proc-macro2" = "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = {
packageId = "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "parsing" "extra-traits" ];
};
};
features = {
};
};
"subtle 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "subtle";
version = "2.1.1";
edition = "2015";
sha256 = "1why1b315gpngf93hb0pj22d8h78y10r1m45hm3af1mhb3lrllhz";
authors = [
"Isis Lovecruft <isis@patternsinthevoid.net>"
"Henry de Valence <hdevalence@hdevalence.ca>"
];
features = {
"default" = [ "std" "i128" ];
};
resolvedDefaultFeatures = [ "std" ];
};
"syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "syn";
version = "0.15.44";
edition = "2015";
sha256 = "09v11h141grmsnamd5j14mn8vpnfng6p60kdmsm8akz9m0qn7s1n";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"proc-macro2" = {
packageId = "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"quote" = {
packageId = "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
usesDefaultFeatures = false;
};
"unicode-xid" = "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "derive" "parsing" "printing" "clone-impls" "proc-macro" ];
"printing" = [ "quote" ];
"proc-macro" = [ "proc-macro2/proc-macro" "quote/proc-macro" ];
};
resolvedDefaultFeatures = [ "clone-impls" "default" "derive" "extra-traits" "parsing" "printing" "proc-macro" "proc-macro2" "quote" "visit" ];
};
"syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "syn";
version = "1.0.5";
edition = "2018";
sha256 = "08qbk425r8c4q4rrpq1q9wkd3v3bji8nlfaxj8v4l7lkpjkh0xgs";
authors = [
"David Tolnay <dtolnay@gmail.com>"
];
dependencies = {
"proc-macro2" = {
packageId = "proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
usesDefaultFeatures = false;
};
"quote" = {
packageId = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
usesDefaultFeatures = false;
};
"unicode-xid" = "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "derive" "parsing" "printing" "clone-impls" "proc-macro" ];
"printing" = [ "quote" ];
"proc-macro" = [ "proc-macro2/proc-macro" "quote/proc-macro" ];
};
resolvedDefaultFeatures = [ "clone-impls" "default" "derive" "full" "parsing" "printing" "proc-macro" "proc-macro2" "quote" "visit" ];
};
"synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "synstructure";
version = "0.10.2";
edition = "2015";
sha256 = "0bp29grjsim99xm1l6h38mbl98gnk47lf82rawlmws5zn4asdpj4";
authors = [
"Nika Layzell <nika@thelayzells.com>"
];
dependencies = {
"proc-macro2" = "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = {
packageId = "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "visit" "extra-traits" ];
};
"unicode-xid" = "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
};
};
"typenum 1.11.2 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "typenum";
version = "1.11.2";
edition = "2015";
sha256 = "0pdbfkqzp4hwj21b2gv79kh1s1sgr587bd4s039qzalg5jiniiz8";
build = "build/main.rs";
authors = [
"Paho Lurie-Gregg <paho@paholg.com>"
"Andre Bogus <bogusandre@gmail.com>"
];
features = {
};
};
"unicode-segmentation 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "unicode-segmentation";
version = "1.3.0";
edition = "2015";
sha256 = "0jnns99wpjjpqzdn9jiplsr003rr41i95c008jb4inccb3avypp0";
authors = [
"kwantam <kwantam@gmail.com>"
];
features = {
};
};
"unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "unicode-xid";
version = "0.1.0";
edition = "2015";
sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj";
authors = [
"erick.tryzelaar <erick.tryzelaar@gmail.com>"
"kwantam <kwantam@gmail.com>"
];
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "unicode-xid";
version = "0.2.0";
edition = "2015";
sha256 = "1c85gb3p3qhbjvfyjb31m06la4f024jx319k10ig7n47dz2fk8v7";
authors = [
"erick.tryzelaar <erick.tryzelaar@gmail.com>"
"kwantam <kwantam@gmail.com>"
];
features = {
};
resolvedDefaultFeatures = [ "default" ];
};
"wasm-bindgen 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "wasm-bindgen";
version = "0.2.50";
edition = "2018";
sha256 = "1w3j03p6nw7df7b7k2y0l9gcdg9nblwibbn9p5il3wgragx2w762";
authors = [
"The wasm-bindgen Developers"
];
dependencies = {
"cfg-if" = "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)";
"serde" = {
packageId = "serde 1.0.100 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"serde_json" = {
packageId = "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)";
optional = true;
};
"wasm-bindgen-macro" = "wasm-bindgen-macro 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"default" = [ "spans" "std" ];
"enable-interning" = [ "std" ];
"serde-serialize" = [ "serde" "serde_json" "std" ];
"spans" = [ "wasm-bindgen-macro/spans" ];
"strict-macro" = [ "wasm-bindgen-macro/strict-macro" ];
"xxx_debug_only_print_generated_code" = [ "wasm-bindgen-macro/xxx_debug_only_print_generated_code" ];
};
resolvedDefaultFeatures = [ "default" "serde" "serde-serialize" "serde_json" "spans" "std" "wasm-bindgen-macro" ];
};
"wasm-bindgen-backend 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "wasm-bindgen-backend";
version = "0.2.50";
edition = "2018";
sha256 = "01r189pymyh5nzg770dj8bcysv145a3asv7qz6q13bbp95ghnc6y";
authors = [
"The wasm-bindgen Developers"
];
dependencies = {
"bumpalo" = "bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)";
"lazy_static" = "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)";
"log" = "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)";
"proc-macro2" = "proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = {
packageId = "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "full" ];
};
"wasm-bindgen-shared" = "wasm-bindgen-shared 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"extra-traits" = [ "syn/extra-traits" ];
};
resolvedDefaultFeatures = [ "spans" ];
};
"wasm-bindgen-macro 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "wasm-bindgen-macro";
version = "0.2.50";
edition = "2018";
sha256 = "03xgb02f2x1hyl4gpn0gfs7g3vlclwg6ayygi0n5vxmavpnzbhbm";
procMacro = true;
authors = [
"The wasm-bindgen Developers"
];
dependencies = {
"quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)";
"wasm-bindgen-macro-support" = "wasm-bindgen-macro-support 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"spans" = [ "wasm-bindgen-macro-support/spans" ];
"strict-macro" = [ "wasm-bindgen-macro-support/strict-macro" ];
};
resolvedDefaultFeatures = [ "spans" "wasm-bindgen-macro-support" ];
};
"wasm-bindgen-macro-support 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "wasm-bindgen-macro-support";
version = "0.2.50";
edition = "2018";
sha256 = "0ixrqldw6c5031kswizk2ql2smk9k8ag571a6v7733nz6j2qk8jy";
authors = [
"The wasm-bindgen Developers"
];
dependencies = {
"proc-macro2" = "proc-macro2 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)";
"quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)";
"syn" = {
packageId = "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)";
features = [ "visit" ];
};
"wasm-bindgen-backend" = "wasm-bindgen-backend 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
"wasm-bindgen-shared" = "wasm-bindgen-shared 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)";
};
features = {
"extra-traits" = [ "syn/extra-traits" ];
"spans" = [ "wasm-bindgen-backend/spans" ];
};
resolvedDefaultFeatures = [ "spans" "wasm-bindgen-backend" ];
};
"wasm-bindgen-shared 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "wasm-bindgen-shared";
version = "0.2.50";
edition = "2018";
sha256 = "1jb9r640jsp7f0c4ig854549404fyrfdiw717hm4xdya597njsy0";
authors = [
"The wasm-bindgen Developers"
];
features = {
};
};
"winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "winapi";
version = "0.3.8";
edition = "2015";
sha256 = "084ialbgww1vxry341fmkg5crgpvab3w52ahx1wa54yqjgym0vxs";
authors = [
"Peter Atashian <retep998@gmail.com>"
];
dependencies = {
"winapi-i686-pc-windows-gnu" = {
packageId = "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)";
target = (stdenv.hostPlatform.config == "i686-pc-windows-gnu");
};
"winapi-x86_64-pc-windows-gnu" = {
packageId = "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)";
target = (stdenv.hostPlatform.config == "x86_64-pc-windows-gnu");
};
};
features = {
"debug" = [ "impl-debug" ];
};
resolvedDefaultFeatures = [ "minwindef" "ntsecapi" "profileapi" "winnt" ];
};
"winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "winapi-i686-pc-windows-gnu";
version = "0.4.0";
edition = "2015";
sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp";
authors = [
"Peter Atashian <retep998@gmail.com>"
];
features = {
};
};
"winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"
= rec {
crateName = "winapi-x86_64-pc-windows-gnu";
version = "0.4.0";
edition = "2015";
sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj";
authors = [
"Peter Atashian <retep998@gmail.com>"
];
features = {
};
};
};
#
# crate2nix/default.nix (excerpt start)
#
# Target (platform) data for conditional dependencies.
# This corresponds to what buildRustCrate is setting.
target = {
unix = true;
windows = false;
# This doesn't appear to be officially documented anywhere yet.
# See https://github.com/rust-lang-nursery/rust-forge/issues/101.
os = if stdenv.hostPlatform.isDarwin
then "macos"
else stdenv.hostPlatform.parsed.kernel.name;
arch = stdenv.hostPlatform.parsed.cpu.name;
family = "unix";
env = "gnu";
endian = if stdenv.hostPlatform.parsed.cpu.significantByte.name == "littleEndian" then "little" else "big";
pointer_width = toString stdenv.hostPlatform.parsed.cpu.bits;
vendor = stdenv.hostPlatform.parsed.vendor.name;
debug_assertions = false;
};
/* Filters common temp files and build files */
# TODO(pkolloch): Substitute with gitignore filter
sourceFilter = name: type:
let baseName = builtins.baseNameOf (builtins.toString name);
in ! (
# Filter out git
baseName == ".gitignore" ||
(type == "directory" && baseName == ".git" ) ||
# Filter out build results
(type == "directory" && (
baseName == "target" ||
baseName == "_site" ||
baseName == ".sass-cache" ||
baseName == ".jekyll-metadata" ||
baseName == "build-artifacts"
)) ||
# Filter out nix-build result symlinks
(type == "symlink" && lib.hasPrefix "result" baseName) ||
# Filter out IDE config
(type == "directory" && (
baseName == ".idea" ||
baseName == ".vscode"
)) ||
lib.hasSuffix ".iml" baseName ||
# Filter out nix build files
# lib.hasSuffix ".nix" baseName ||
# Filter out editor backup / swap files.
lib.hasSuffix "~" baseName ||
builtins.match "^\\.sw[a-z]$$" baseName != null ||
builtins.match "^\\..*\\.sw[a-z]$$" baseName != null ||
lib.hasSuffix ".tmp" baseName ||
lib.hasSuffix ".bak" baseName
);
/* A restricted overridable version of buildRustCrateWithFeaturesImpl. */
buildRustCrateWithFeatures = {packageId, features}:
lib.makeOverridable
({features}: buildRustCrateWithFeaturesImpl {inherit packageId features;})
{ inherit features; };
/* Returns a buildRustCrate derivation for the given packageId and features. */
buildRustCrateWithFeaturesImpl = { crateConfigs? crates, packageId, features } @ args:
assert (builtins.isAttrs crateConfigs);
assert (builtins.isString packageId);
assert (builtins.isList features);
let mergedFeatures = mergePackageFeatures args;
buildByPackageId = packageId:
let features = mergedFeatures."${packageId}" or [];
crateConfig = lib.filterAttrs (n: v: n != "resolvedDefaultFeatures") crateConfigs."${packageId}";
dependencies =
dependencyDerivations buildByPackageId features (crateConfig.dependencies or {});
buildDependencies =
dependencyDerivations buildByPackageId features (crateConfig.buildDependencies or {});
in buildRustCrate (crateConfig // { inherit features dependencies buildDependencies; });
in buildByPackageId packageId;
/* Returns the actual derivations for the given dependencies. */
dependencyDerivations = buildByPackageId: features: dependencies:
assert (builtins.isFunction buildByPackageId);
assert (builtins.isList features);
assert (builtins.isAttrs dependencies);
let enabledDependencies = filterEnabledDependencies dependencies features;
depDerivation = dependencyName: dependency:
buildByPackageId (dependencyPackageId dependency);
in builtins.attrValues (lib.mapAttrs depDerivation enabledDependencies);
/* Returns differences between cargo default features and crate2nix default features.
*
* This is useful for verifying the feature resolution in crate2nix.
*/
diffDefaultPackageFeatures = {crateConfigs ? crates, packageId}:
assert (builtins.isAttrs crateConfigs);
let prefixValues = prefix: lib.mapAttrs (n: v: { "${prefix}" = v; });
mergedFeatures =
prefixValues
"crate2nix"
(mergePackageFeatures {inherit crateConfigs packageId; features = ["default"]; });
configs = prefixValues "cargo" crateConfigs;
combined = lib.foldAttrs (a: b: a // b) {} [ mergedFeatures configs ];
onlyInCargo = builtins.attrNames (lib.filterAttrs (n: v: !(v ? "crate2nix" ) && (v ? "cargo")) combined);
onlyInCrate2Nix = builtins.attrNames (lib.filterAttrs (n: v: (v ? "crate2nix" ) && !(v ? "cargo")) combined);
differentFeatures = lib.filterAttrs
(n: v:
(v ? "crate2nix" )
&& (v ? "cargo")
&& (v.crate2nix.features or []) != (v."cargo".resolved_default_features or []))
combined;
in builtins.toJSON { inherit onlyInCargo onlyInCrate2Nix differentFeatures; };
/* Returns the feature configuration by package id for the given input crate. */
mergePackageFeatures = {crateConfigs ? crates, packageId, features} @ args:
assert (builtins.isAttrs crateConfigs);
assert (builtins.isString packageId);
assert (builtins.isList features);
let packageFeatures = listOfPackageFeatures args;
grouped = lib.groupBy (x: x.packageId) packageFeatures;
in lib.mapAttrs (n: v: sortedUnique (builtins.concatLists (builtins.map (v: v.features) v))) grouped;
/* Returns a { packageId, features } attribute set for every package needed for building the
package for the given packageId with the given features.
Returns multiple, potentially conflicting attribute sets for dependencies that are reachable
by multiple paths in the dependency tree.
*/
listOfPackageFeatures = {crateConfigs ? crates, packageId, features, dependencyPath? [packageId]} @ args:
assert (builtins.isAttrs crateConfigs);
assert (builtins.isString packageId);
assert (builtins.isList features);
let
crateConfig = crateConfigs."${packageId}" or (builtins.throw "Package not found: ${packageId}");
expandedFeatures = expandFeatures (crateConfig.features or {}) features;
depWithResolvedFeatures = dependencyName: dependency:
let packageId = dependencyPackageId dependency;
features = dependencyFeatures expandedFeatures dependencyName dependency;
in { inherit packageId features; };
resolveDependencies = path: dependencies:
assert (builtins.isAttrs dependencies);
let enabledDependencies = filterEnabledDependencies dependencies expandedFeatures;
directDependencies =
builtins.attrValues (lib.mapAttrs depWithResolvedFeatures enabledDependencies);
in builtins.concatMap
({packageId, features}: listOfPackageFeatures {
# This is purely for debugging.
dependencyPath = dependencyPath ++ [path packageId];
inherit crateConfigs packageId features;
})
directDependencies;
resolvedDependencies = builtins.concatLists
[
(resolveDependencies "dependencies" (crateConfig.dependencies or {}))
(resolveDependencies "buildDependencies" (crateConfig.buildDependencies or {}))
];
in [{inherit packageId; features = expandedFeatures;}] ++ resolvedDependencies;
/* Returns the enabled dependencies given the enabled features. */
filterEnabledDependencies = dependencies: features:
assert (builtins.isAttrs dependencies);
assert (builtins.isList features);
lib.filterAttrs
(depName: dep:
builtins.isString dep
|| dep.target or true
&& (!(dep.optional or false) || builtins.any (doesFeatureEnableDependency depName) features))
dependencies;
/* Returns whether the given feature should enable the given dependency. */
doesFeatureEnableDependency = depName: feature:
let prefix = "${depName}/";
len = builtins.stringLength prefix;
startsWithPrefix = builtins.substring 0 len feature == prefix;
in feature == depName || startsWithPrefix;
/* Returns the expanded features for the given inputFeatures by applying the rules in featureMap.
featureMap is an attribute set which maps feature names to lists of further feature names to enable in case this
feature is selected.
*/
expandFeatures = featureMap: inputFeatures:
assert (builtins.isAttrs featureMap);
assert (builtins.isList inputFeatures);
let expandFeature = feature:
assert (builtins.isString feature);
[feature] ++ (expandFeatures featureMap (featureMap."${feature}" or []));
outFeatures = builtins.concatMap expandFeature inputFeatures;
in sortedUnique outFeatures;
/* The package ID of the given dependency. */
dependencyPackageId = dependency: if builtins.isString dependency then dependency else dependency.packageId;
/* Returns the actual dependencies for the given dependency. */
dependencyFeatures = features: dependencyName: dependency:
assert (builtins.isList features);
assert (builtins.isString dependencyName);
assert (builtins.isAttrs dependency || builtins.isString dependency);
let defaultOrNil = if builtins.isString dependency || dependency.usesDefaultFeatures or true
then ["default"]
else [];
explicitFeatures = if builtins.isString dependency then [] else dependency.features or [];
additionalDependencyFeatures =
let dependencyPrefix = dependencyName+"/";
dependencyFeatures =
builtins.filter (f: lib.hasPrefix dependencyPrefix f) features;
in builtins.map (lib.removePrefix dependencyPrefix) dependencyFeatures;
in
defaultOrNil ++ explicitFeatures ++ additionalDependencyFeatures;
/* Sorts and removes duplicates from a list of strings. */
sortedUnique = features:
assert (builtins.isList features);
assert (builtins.all builtins.isString features);
let outFeaturesSet = lib.foldl (set: feature: set // {"${feature}" = 1;} ) {} features;
outFeaturesUnique = builtins.attrNames outFeaturesSet;
in builtins.sort (a: b: a < b) outFeaturesUnique;
#
# crate2nix/default.nix (excerpt end)
#
}
let
pkgs = import (fetchTarball {
url =
"https://github.com/NixOS/nixpkgs-channels/archive/e19054ab3cd5b7cc9a01d0efc71c8fe310541065.tar.gz";
}) { overlays = [ mozillaOverlay myRust ]; };
mozillaOverlay = import (fetchTarball {
url =
"https://github.com/mozilla/nixpkgs-mozilla/archive/b52a8b7de89b1fac49302cbaffd4caed4551515f.tar.gz";
});
myRust = self: super: {
rustc = pkgs.rustChannels.stable.rust.override {
targets = [ "wasm32-unknown-unknown" ];
};
cargo = pkgs.rustChannels.stable.cargo.override {
targets = [ "wasm32-unknown-unknown" ];
};
};
js-chain-libs = pkgs.fetchgit {
url = "https://github.com/input-output-hk/js-chain-libs.git";
rev = "1c2f2b9132a015c683e6296adbe20201dce9e01b";
sha256 = "sha256:0gsqzs0z784sha13za124y2jha0pgmr5qfchxb6x7m6cpgjb5djz";
fetchSubmodules = true;
};
in (import ./Cargo.nix { pkgs = pkgs; }).rootCrate.build.overrideAttrs (a:
a // {
buildInputs = [ pkgs.wasm-pack ];
postBuild = ''
mkdir -p $out/pack
wasm-pack build --target nodejs --out-dir $out/pack
'';
})
these derivations will be built:
/nix/store/xmcm7c57w5zprlqrglf43si9mfmld3kv-rust_js-chain-libs-0.1.0.drv
building '/nix/store/xmcm7c57w5zprlqrglf43si9mfmld3kv-rust_js-chain-libs-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/3pb4b3qm4sq69bhq1qdsl5rh5dp88602-js-chain-libs
source root is js-chain-libs
patching sources
configuring
building
Building src/lib.rs (js-chain-libs)
Running rustc --crate-name js_chain_libs src/lib.rs --crate-type lib -C opt-level=3 -C codegen-units=8 --edition 2018 -C metadata=bc8cb9c00c -C extra-filename=-bc8cb9c00c --cfg feature="console_error_panic_hook" --cfg feature="default" --out-dir target/lib --emit=dep-info,link -L dependency=target/deps --extern bech32=/nix/store/9cq60dxs5nhzmlxac021fc8gjggl4c9p-rust_bech32-0.6.0/lib/libbech32-d50d21d996.rlib --extern chain_addr=/nix/store/iq6g572vvmqk152q5j35wmim6yjhxg6s-rust_chain-addr-0.1.0/lib/libchain_addr-f98dc9b2f8.rlib --extern chain_core=/nix/store/27617gnhdv35mbq3l66g3vw98qaz6agh-rust_chain-core-0.1.0/lib/libchain_core-8960c2efcc.rlib --extern chain_crypto=/nix/store/92k3gaqj0qsg64qa3hpngl994x2agx3g-rust_chain-crypto-0.1.0/lib/libchain_crypto-02b497e804.rlib --extern chain_impl_mockchain=/nix/store/fckzpk2qvsdjn79fvihyfs5mp9lpng04-rust_chain-impl-mockchain-0.1.0/lib/libchain_impl_mockchain-c58b27ee04.rlib --extern clear_on_drop=/nix/store/yxpcf3yhlwkxm2vqj2md88glkcrmjn6r-rust_clear_on_drop-0.2.3/lib/libclear_on_drop-2370248928.rlib --extern console_error_panic_hook=/nix/store/xksll2y5q2506igmyw74ivc26bn8plnv-rust_console_error_panic_hook-0.1.6/lib/libconsole_error_panic_hook-899ad7055b.rlib --extern js_sys=/nix/store/7k051ilxb77syhz3hqg2a5wfqshqf46n-rust_js-sys-0.3.27/lib/libjs_sys-0cc92226de.rlib --extern rand_os=/nix/store/vpcwy1hzzdjdi728g9r0scmns1wrv78x-rust_rand_os-0.1.3/lib/librand_os-114f9e1478.rlib --extern serde=/nix/store/7cqkviq1igw2zy1fcpma67pj3vz1hk69-rust_serde-1.0.100/lib/libserde-3c8164b666.rlib --extern wasm_bindgen=/nix/store/havz5v8bbjz3s9m8phj75fnvpr9dkkph-rust_wasm-bindgen-0.2.50/lib/libwasm_bindgen-35eca5f305.rlib --cap-lints allow --color always
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
error: Permission denied (os error 13)
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit code: 101
builder for '/nix/store/xmcm7c57w5zprlqrglf43si9mfmld3kv-rust_js-chain-libs-0.1.0.drv' failed with exit code 1
error: build of '/nix/store/xmcm7c57w5zprlqrglf43si9mfmld3kv-rust_js-chain-libs-0.1.0.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment