nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
374 stars 89 forks source link

Work with -Z build-std #161

Open Ericson2314 opened 3 years ago

Ericson2314 commented 3 years ago

See

I am very interested using this for nice incremental builds, native and cross, building each crate of the standard library and also rustc separately.

Ericson2314 commented 2 years ago

We now have a trivial "empty cross" test (https://github.com/kolloch/crate2nix/tree/master/sample_projects/empty_cross), and buildRustCrate knows how a slightly different --extern is needed for a "stdlib dependency" (https://github.com/NixOS/nixpkgs/pull/184620).

I think just a bit more documentation and testing is needed, and then this is all done!