edit in "shell.nix" at line 1
[5.96]→[5.96:107](∅→∅),
[5.96]→[5.96:107](∅→∅),
[5.96]→[5.96:107](∅→∅),
[5.96]→[5.96:107](∅→∅) edit in "flake.nix" at line 87
replacement in "Cargo.nix" at line 2
− # This file was @generated by crate2nix 0.10.0 with the command:
+ # This file was @generated by crate2nix 0.9.0 with the command:
replacement in "Cargo.nix" at line 11
− then lib.warn "crate2nix: Passing `buildRustCrate` as argument to Cargo.nix is deprecated. If you don't customize `buildRustCrate`, replace `callPackage ./Cargo.nix {}` by `import ./Cargo.nix { inherit pkgs; }`, and if you need to customize `buildRustCrate`, use `buildRustCrateForPkgs` instead." (_: buildRustCrate)
+ then lib.warn "`buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead" (_: buildRustCrate)
edit in "Cargo.nix" at line 6027
+ }
+ ];
+ };
+ "threadpool" = rec {
+ crateName = "threadpool";
+ version = "1.8.1";
+ edition = "2015";
+ sha256 = "1amgfyzvynbm8pacniivzq9r0fh3chhs7kijic81j76l6c5ycl6h";
+ authors = [
+ "The Rust Project Developers"
+ "Corey Farwell <coreyf@rwell.org>"
+ "Stefan Schindler <dns2utf8@estada.ch>"
+ ];
+ dependencies = [
+ {
+ name = "num_cpus";
+ packageId = "num_cpus";
edit in "Cargo.nix" at line 7817
[5.225739]→[5.225739:225748](∅→∅),
[5.225748]→[5.575:909](∅→∅) − };
− "xxhash-rust" = rec {
− crateName = "xxhash-rust";
− version = "0.8.2";
− edition = "2018";
− sha256 = "1v9dk6shls1rsmidf2dxdi3460bn7ingqgvn5mf7prgnxmdy2xg5";
− authors = [
− "Douman <douman@gmx.se>"
− ];
− features = {
− };
− resolvedDefaultFeatures = [ "xxh64" ];
replacement in "Cargo.nix" at line 7895
[5.226917]→[5.919:946](∅→∅) replacement in "Cargo.nix" at line 7897
[5.226970]→[5.947:1020](∅→∅) − sha256 = "16ag26g74k296ppi0flz47qvrfi938km95jvr0brphpcwc2wqqdc";
+ sha256 = "0bxzd71myj094hp03jpqbv1r80x0hk1ahsjwfv50j0wgx379jfry";
edit in "Cargo.nix" at line 7900
[5.227114]→[5.1021:1074](∅→∅) − "Darley Barreto <darleybarreto@gmail.com>"
replacement in "Cargo.nix" at line 7911
[5.227425]→[5.1075:1184](∅→∅) − name = "xxhash-rust";
− packageId = "xxhash-rust";
− features = [ "xxh64" ];
+ name = "threadpool";
+ packageId = "threadpool";
edit in "Cargo.nix" at line 7916
+ {
+ name = "cc";
+ packageId = "cc";
+ }
replacement in "Cargo.nix" at line 7934
[5.227946]→[5.1185:1249](∅→∅) − This corresponds roughly to what buildRustCrate is setting.
+ This corresponds roughly to what buildRustCrate is setting.
replacement in "Cargo.nix" at line 8006
[5.230173]→[5.1250:1293](∅→∅) − of crate given as the second argument.
+ of crate given as the second argument.
replacement in "Cargo.nix" at line 8008
[5.230218]→[5.1294:1439](∅→∅) − testCrateFlags: list of flags to pass to the test exectuable
− testInputs: list of packages that should be available during test execution
+ testCrateFlags: list of flags to pass to the test exectuable
+ testInputs: list of packages that should be available during test execution
replacement in "Cargo.nix" at line 8011
[5.230370]→[5.1440:1533](∅→∅) − crateWithTest = { crate, testCrate, testCrateFlags, testInputs, testPreRun, testPostRun }:
+ crateWithTest = { crate, testCrate, testCrateFlags, testInputs }:
edit in "Cargo.nix" at line 8014
[5.230540]→[5.1534:1637](∅→∅) − assert builtins.typeOf testPreRun == "string";
− assert builtins.typeOf testPostRun == "string";
edit in "Cargo.nix" at line 8027
[5.8393]→[5.1638:2088](∅→∅) − # If the user hasn't set any pre/post commands, we don't want to
− # insert empty lines. This means that any existing users of crate2nix
− # don't get a spurious rebuild unless they set these explicitly.
− testCommand = pkgs.lib.concatStringsSep "\n"
− (pkgs.lib.filter (s: s != "") [
− testPreRun
− "$f $testCrateFlags 2>&1 | tee -a $out"
− testPostRun
− ]);
replacement in "Cargo.nix" at line 8060
[5.9364]→[5.2089:2116](∅→∅) + $f $testCrateFlags 2>&1 | tee -a $out
edit in "Cargo.nix" at line 8084
[5.9836]→[5.2117:2292](∅→∅) − # Any command to run immediatelly before a test is executed.
− , testPreRun ? ""
− # Any command run immediatelly after a test is executed.
− , testPostRun ? ""
edit in "Cargo.nix" at line 8092
[5.9978]→[5.2293:2336](∅→∅) − , testPreRun
− , testPostRun
replacement in "Cargo.nix" at line 8124
[5.232751]→[5.2337:2413](∅→∅) − inherit testCrateFlags testInputs testPreRun testPostRun;
+ inherit testCrateFlags testInputs;
replacement in "Cargo.nix" at line 8130
[5.11172]→[5.2414:2516](∅→∅) − { inherit features crateOverrides runTests testCrateFlags testInputs testPreRun testPostRun; };
+ { inherit features crateOverrides runTests testCrateFlags testInputs; };
replacement in "Cargo.nix" at line 8133
[5.11342]→[5.2517:2550](∅→∅) − for the corresponding crate.
+ for the corresponding crate.
replacement in "Cargo.nix" at line 8271
[5.236813]→[5.2551:2578](∅→∅) replacement in "Cargo.nix" at line 8316
[5.238245]→[5.2579:2593](∅→∅) replacement in "Cargo.nix" at line 8318
[5.15219]→[5.2594:2664](∅→∅) − This is useful for verifying the feature resolution in crate2nix.
+ This is useful for verifying the feature resolution in crate2nix.
replacement in "Cargo.nix" at line 8355
[5.239598]→[5.2665:2808](∅→∅) − If multiple paths to a dependency enable different features, the
− corresponding feature sets are merged. Features in rust are additive.
+ If multiple paths to a dependency enable different features, the
+ corresponding feature sets are merged. Features in rust are additive.
edit in "Cargo.nix" at line 8381
[5.15609]→[5.2809:2902](∅→∅) − enabledFeatures = enableFeatures (crateConfig.dependencies or [ ]) expandedFeatures;
replacement in "Cargo.nix" at line 8384
[5.240752]→[5.2903:2973](∅→∅) − features = dependencyFeatures enabledFeatures dependency;
+ features = dependencyFeatures expandedFeatures dependency;
replacement in "Cargo.nix" at line 8393
[5.241150]→[5.2974:3016](∅→∅) − features = enabledFeatures;
+ features = expandedFeatures;
replacement in "Cargo.nix" at line 8417
[5.16373]→[5.3017:3097](∅→∅) − combinedFeatures = sortedUnique (cacheFeatures ++ enabledFeatures);
+ combinedFeatures = sortedUnique (cacheFeatures ++ expandedFeatures);
replacement in "Cargo.nix" at line 8469
[5.243894]→[5.3098:3123](∅→∅) replacement in "Cargo.nix" at line 8471
[5.243921]→[5.3124:3266](∅→∅) − featureMap is an attribute set which maps feature names to lists of further
− feature names to enable in case this feature is selected.
+ featureMap is an attribute set which maps feature names to lists of further
+ feature names to enable in case this feature is selected.
edit in "Cargo.nix" at line 8484
[5.3963]→[5.244476:244477](∅→∅),
[5.17355]→[5.244476:244477](∅→∅),
[5.244476]→[5.244476:244477](∅→∅),
[5.244477]→[5.3267:4099](∅→∅) −
− /* This function adds optional dependencies as features if they are enabled
− indirectly by dependency features. This function mimics Cargo's behavior
− described in a note at:
− https://doc.rust-lang.org/nightly/cargo/reference/features.html#dependency-features
− */
− enableFeatures = dependencies: features:
− assert (builtins.isList features);
− assert (builtins.isList dependencies);
− let
− additionalFeatures = lib.concatMap
− (
− dependency:
− assert (builtins.isAttrs dependency);
− let
− enabled = builtins.any (doesFeatureEnableDependency dependency) features;
− in
− if (dependency.optional or false) && enabled then [ dependency.name ] else [ ]
− )
− dependencies;
− in
− sortedUnique (features ++ additionalFeatures);
replacement in "Cargo.nix" at line 8486
[5.244482]→[5.4101:4159](∅→∅) − Returns the actual features for the given dependency.
+ Returns the actual features for the given dependency.
replacement in "Cargo.nix" at line 8488
[5.17357]→[5.4160:4229](∅→∅) − features: The features of the crate that refers this dependency.
+ features: The features of the crate that refers this dependency.
edit in "Cargo.nix" at line 8527
[5.4096]→[5.12019:12024](∅→∅),
[5.12024]→[5.4230:4232](∅→∅) edit in "Cargo.nix" at line 8528
edit in "Cargo.lock" at line 2109
+ name = "threadpool"
+ version = "1.8.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
+ dependencies = [
+ "num_cpus",
+ ]
+ [[package]]
edit in "Cargo.lock" at line 2606
[5.61239]→[5.61239:61252](∅→∅),
[5.61252]→[5.4351:4533](∅→∅) −
− [[package]]
− name = "xxhash-rust"
− version = "0.8.2"
− source = "registry+https://github.com/rust-lang/crates.io-index"
− checksum = "e575e15bedf6e57b5c2d763ffc6c3c760143466cbd09d762d539680ab5992ded"
replacement in "Cargo.lock" at line 2640
[5.62007]→[2.2790:2808](∅→∅) replacement in "Cargo.lock" at line 2642
[5.62090]→[2.2809:2887](∅→∅) − checksum = "1b8063b34aea161faa6068c9246f98fc033047af5764305ae972e0bc0bf768d4"
+ checksum = "3e3b99cee88f0309ca765c6aa8c284a00394c35ef8ca012e2409485fc369bf2f"
edit in "Cargo.lock" at line 2644
replacement in "Cargo.lock" at line 2648
[5.62230]→[5.4645:4661](∅→∅)