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
Since a recent update of cargo (I suspect it was with 1.80.0 but I didn't research it yet, as I suppose at this point it isn't really relevant) cargo prints a warning when cargoBuildHook is executed.
Here is an example from building the termusic package:
termusic> warning: `/build/.cargo/config` is deprecated in favor of `config.toml`
termusic> note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
termusic> warning: `/build/.cargo/config` is deprecated in favor of `config.toml`
termusic> note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
Steps To Reproduce
Steps to reproduce the behavior:
Build any Rust package based on nixpkgs-unstable (or nixpkgs/master).
Expected behavior
The relevant build support scripts of nixpkgs should be updated to store the cargo config as suggested by the deprecation note.
If necessary, the script should check if an older cargo version then 1.38 is used and in case symlink like suggested as well.
Additional context
Here are the uses of .cargo/config I could find with rg in pkgs/build-support/rust/, but I am not sure if that is sufficient or if there are some hidden place I might have missed with this cursory search:
Generally I would be interested in attempting a fix myself, but I am sure I cannot pick it up before the next four weeks, so if in the meantime someone else wants to fix this, please go ahead.
Describe the bug
Since a recent update of
cargo
(I suspect it was with1.80.0
but I didn't research it yet, as I suppose at this point it isn't really relevant) cargo prints a warning whencargoBuildHook
is executed.Here is an example from building the
termusic
package:Steps To Reproduce
Steps to reproduce the behavior:
Build any Rust package based on
nixpkgs-unstable
(ornixpkgs/master
).Expected behavior
The relevant build support scripts of
nixpkgs
should be updated to store the cargo config as suggested by the deprecation note.If necessary, the script should check if an older cargo version then
1.38
is used and in case symlink like suggested as well.Additional context
Here are the uses of
.cargo/config
I could find withrg
inpkgs/build-support/rust/
, but I am not sure if that is sufficient or if there are some hidden place I might have missed with this cursory search:Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Generally I would be interested in attempting a fix myself, but I am sure I cannot pick it up before the next four weeks, so if in the meantime someone else wants to fix this, please go ahead.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: