b3969f3ad7
This change introduces the cargoLock argument to buildRustPackage, which can be used in place of cargo{Sha256,Hash} or cargoVendorDir. It uses the importCargoLock function to build the vendor directory. Differences compared to cargo{Sha256,Hash}: - Requires a Cargo.lock file. - Does not require a Cargo hash. - Retrieves all dependencies as fixed-output derivations. This makes buildRustPackage much easier to use as part of a Rust project, since it does not require updating cargo{Sha256,Hash} for every change to the lock file. |
||
---|---|---|
.. | ||
rls | ||
1_45.nix | ||
1_51.nix | ||
binary.nix | ||
bootstrap.nix | ||
cargo.nix | ||
clippy.nix | ||
default.nix | ||
make-rust-platform.nix | ||
print-hashes.sh | ||
rust-lib-src.nix | ||
rust-src.nix | ||
rustc.nix | ||
rustfmt.nix | ||
setup-hook.sh |