1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/build-support/rust
Romanos Skiadas 23dd37dd5e rustPlatform.importCargoLock: add an assert for old Cargo.locks
near the end of 2019, the default Cargo.lock format was changed to
[[package]]
checksum = ...

This is what importCargoLock assumes. If the crate had not been `cargo
update`'d with a more recent toolchain than the one with the new
format as default, importCargoLock would fail when trying to access
pkg.checksum.

I ran into such a case (shamefully, in my own crate) and it took me a
while to figure out what was going on, so here is an assert with a
more user friendly message and a hint.
2021-07-18 18:19:50 +03:00
..
build-rust-crate build-rust-crate: disable incremental builds 2021-07-09 22:55:38 +09:00
hooks maturinBuildHook: add rustc to deps 2021-05-21 07:51:27 +02:00
patch-registry-deps
sysroot add sysroot lockfile update script then run it 2020-10-17 01:34:51 -07:00
test/import-cargo-lock rustPlatform.importCargoLock: add test cases for importCargoLock 2021-05-28 08:01:28 +02:00
cargo-vendor-normalise.py
carnix.nix
crates-io.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
default-crate-overrides.nix llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
default.nix Merge pull request #122158 from danieldk/import-cargo-lock 2021-05-28 12:07:25 +02:00
fetchcargo-default-config.toml
fetchCargoTarball.nix fetchCargoTarball: set default sourceRoot to the empty string 2021-02-11 20:00:13 +01:00
fetchcrate.nix fetchCrate: accept pname besides crateName 2020-08-28 08:34:22 +02:00
import-cargo-lock.nix rustPlatform.importCargoLock: add an assert for old Cargo.locks 2021-07-18 18:19:50 +03:00