You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buildRustCrate and accompanying tools such as Carnix, does not handle renames in Cargo.toml. This is likely to become a more serious issue for users of buildRustCrate soon, since rand 0.7.0 uses a rename:
However, buildRustCrate with Carnix-generated files currently adds
--extern getrandom=[...]/libgetrandom-[...].rlib
This issue has been reported in the bug trackers of Carnix and crate2nix, but I thought it would be good to have an issue in the nixpkgs issue tracker in case people run into this issue.
I guess i might be able to fix/add support for this in crate2nix but I prefer to not touch the carnix code base and haven't received any feedback from the author despite multiple attempts on different channels.
Describe the bug
buildRustCrate
and accompanying tools such as Carnix, does not handle renames inCargo.toml
. This is likely to become a more serious issue for users ofbuildRustCrate
soon, sincerand
0.7.0 uses a rename:In such cases, the right invocation of
rustc
adds an extern option like the following:However,
buildRustCrate
with Carnix-generated files currently addsThis issue has been reported in the bug trackers of Carnix and crate2nix, but I thought it would be good to have an issue in the nixpkgs issue tracker in case people run into this issue.
https://nest.pijul.com/pmeunier/carnix/discussions/35
nix-community/crate2nix#22
To Reproduce
Cargo.toml
that hasrand == 0.7
as a transitive dependency.nix-build
Expected behavior
The build succeeds, because it adds the correct
--extern
argument.The text was updated successfully, but these errors were encountered: