-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-profilesArea: profilesArea: profilesC-bugCategory: bugCategory: bug
Description
Problem
I added this to ~/.cargo/config
to try out strip
feature:
cargo-features = ["strip"]
[profile.release]
strip = "debuginfo"
After that I ran cargo clean
in a crate.
I expected to see this happen:
- Clean successfully
- Error about not be able to add the above part in
~/.cargo/config
, only inCargo.toml
Instead this happened:
% cargo clean
error: error in /home/lzutao/fork/rust/rustup/.cargo/config: could not load config key `profile.release`
Caused by:
error in /home/lzutao/.cargo/config.toml: could not load config key `profile.release.strip`
Caused by:
invalid type: string "debuginfo", expected enum Strip
Output of cargo version
: cargo 1.46.0-nightly (fede83c 2020-07-02)
Metadata
Metadata
Assignees
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-profilesArea: profilesArea: profilesC-bugCategory: bugCategory: bug