-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global cargo-features
#11552
Comments
AFAIK, that is intentional. I'd like to know which feature you want to use but is blocked. Having a more specific example may help. Thank you. |
I wanted to do something similar to this: cargo-features = ["profile-rustflags", "codegen-backend"]
[profile.dev]
codegen-backend = "cranelift"
[profile.rel_local]
inherits = "release"
rustflags = ["-Ctarget-cpu=native"] |
I managed to work around (.cargo/config.toml) [alias]
"i" = "install --config configs/install.toml (.cargo/configs/install.toml) [env]
RUSTFLAGS = ["-Ctarget-cpu=native"] Yet I'm still unsure how to work around |
My poor memomry! I found this is a duplicate of #9926. I'll close it in favor of that. We could have more discussions there. Thank you! |
Reopen this as the feature in #9926 has been stabilized. It is more clear to jot down notes on this issue. Cargo team talked about this in today's meeting. The team decided not to have a general purpose way enabling features via configuration ( For #11552 in to be set via config.toml. |
Problem
Currently it's not possible as far as I'm aware of to use
cargo-features
in$CARGO_HOME/config.toml
, even when using a nightly build. Am I missing something?Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: