replacement in "libpijul/Cargo.toml" at line 119
[6.109303]→[4.345:400](∅→∅) − zstd-seekable = { version = "0.2.0", optional = true }
+ zstd-seekable = { version = "0.2.1", optional = true }
replacement in "Cargo.nix" at line 2
− # This file was @generated by crate2nix 0.9.0 with the command:
+ # This file was @generated by crate2nix 0.10.0 with the command:
replacement in "Cargo.nix" at line 11
− then lib.warn "`buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead" (_: buildRustCrate)
+ 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)
replacement in "Cargo.nix" at line 3017
− version = "1.0.0-alpha.47";
+ version = "1.0.0-alpha.48";
edit in "Cargo.nix" at line 4397
+ }
+ {
+ name = "thiserror";
+ packageId = "thiserror";
edit in "Cargo.nix" at line 6027
[6.12562]→[6.161017:161040](∅→∅),
[6.161017]→[6.161017:161040](∅→∅),
[6.161040]→[6.6448:6449](∅→∅),
[6.6449]→[6.161049:161515](∅→∅),
[6.161049]→[6.161049:161515](∅→∅) − }
− ];
−
− };
− "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 7800
+ "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 7889
[6.226917]→[6.6993:7020](∅→∅) replacement in "Cargo.nix" at line 7891
[6.226970]→[6.7021:7094](∅→∅) − sha256 = "0bxzd71myj094hp03jpqbv1r80x0hk1ahsjwfv50j0wgx379jfry";
+ sha256 = "16ag26g74k296ppi0flz47qvrfi938km95jvr0brphpcwc2wqqdc";
edit in "Cargo.nix" at line 7894
+ "Darley Barreto <darleybarreto@gmail.com>"
replacement in "Cargo.nix" at line 7906
[6.227425]→[6.227425:227496](∅→∅) − name = "threadpool";
− packageId = "threadpool";
+ name = "xxhash-rust";
+ packageId = "xxhash-rust";
+ features = [ "xxh64" ];
edit in "Cargo.nix" at line 7913
[6.227650]→[6.227650:227717](∅→∅),
[6.227717]→[6.12267:12279](∅→∅) − name = "cc";
− packageId = "cc";
− }
− {
replacement in "Cargo.nix" at line 7926
[6.227946]→[3.10707:10772](∅→∅) − This corresponds roughly to what buildRustCrate is setting.
+ This corresponds roughly to what buildRustCrate is setting.
replacement in "Cargo.nix" at line 7998
[6.230173]→[3.10773:10817](∅→∅) − of crate given as the second argument.
+ of crate given as the second argument.
replacement in "Cargo.nix" at line 8000
[6.230218]→[3.10818:10965](∅→∅) − 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 8003
[6.230370]→[3.10966:11034](∅→∅) − crateWithTest = { crate, testCrate, testCrateFlags, testInputs }:
+ crateWithTest = { crate, testCrate, testCrateFlags, testInputs, testPreRun, testPostRun }:
edit in "Cargo.nix" at line 8006
+ assert builtins.typeOf testPreRun == "string";
+ assert builtins.typeOf testPostRun == "string";
edit in "Cargo.nix" at line 8021
+ # 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 8063
[6.9364]→[3.11035:11085](∅→∅) − $f $testCrateFlags 2>&1 | tee -a $out
edit in "Cargo.nix" at line 8087
+ # 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 8099
+ , testPreRun
+ , testPostRun
replacement in "Cargo.nix" at line 8133
[6.232751]→[3.11086:11139](∅→∅) − inherit testCrateFlags testInputs;
+ inherit testCrateFlags testInputs testPreRun testPostRun;
replacement in "Cargo.nix" at line 8139
[6.11172]→[3.11140:11219](∅→∅) − { inherit features crateOverrides runTests testCrateFlags testInputs; };
+ { inherit features crateOverrides runTests testCrateFlags testInputs testPreRun testPostRun; };
replacement in "Cargo.nix" at line 8142
[6.11342]→[3.11220:11254](∅→∅) − for the corresponding crate.
+ for the corresponding crate.
replacement in "Cargo.nix" at line 8280
[6.236813]→[3.11255:11283](∅→∅) replacement in "Cargo.nix" at line 8325
[6.238245]→[3.11284:11299](∅→∅) replacement in "Cargo.nix" at line 8327
[6.15219]→[3.11300:11371](∅→∅) − 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 8364
[6.239598]→[3.11372:11517](∅→∅) − 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 8390
+ enabledFeatures = enableFeatures (crateConfig.dependencies or [ ]) expandedFeatures;
replacement in "Cargo.nix" at line 8394
[6.240752]→[3.11518:11589](∅→∅) − features = dependencyFeatures expandedFeatures dependency;
+ features = dependencyFeatures enabledFeatures dependency;
replacement in "Cargo.nix" at line 8403
[6.241150]→[3.11590:11633](∅→∅) − features = expandedFeatures;
+ features = enabledFeatures;
replacement in "Cargo.nix" at line 8427
[6.16373]→[3.11634:11715](∅→∅) − combinedFeatures = sortedUnique (cacheFeatures ++ expandedFeatures);
+ combinedFeatures = sortedUnique (cacheFeatures ++ enabledFeatures);
replacement in "Cargo.nix" at line 8479
[6.243894]→[3.11716:11742](∅→∅) replacement in "Cargo.nix" at line 8481
[6.243921]→[3.11743:11887](∅→∅) − 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 8495
+ /* 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 8518
[6.244482]→[3.11888:11947](∅→∅) − Returns the actual features for the given dependency.
+ Returns the actual features for the given dependency.
replacement in "Cargo.nix" at line 8520
[6.17357]→[3.11948:12018](∅→∅) − 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 8559
[6.4095]→[6.4095:4096](∅→∅) replacement in "Cargo.nix" at line 8560
[3.12024]→[3.12024:12025](∅→∅) replacement in "Cargo.lock" at line 2637
[6.62007]→[5.4547:4565](∅→∅) replacement in "Cargo.lock" at line 2639
[6.62090]→[5.4566:4644](∅→∅) − checksum = "62d9eace42d7bf64591d547cb727d89277e3de1c1b934e3d9d0af8c6687587ef"
+ checksum = "ac61cc05e3ecc29b17c85b9654271a29babcf1219f3a10ef35494c729e114f99"