-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tracking Issue: Exposing RUSTFLAGS in cargo #12739
Comments
@epage is this the same as people always discuss when finding the config language toml is ok, but not ideal? compared to:
|
This issue is about finding ways to expose environment config as project config and is unrelated to what format is used for either |
Would it make sense to support arbitrary unstable For example, there's Cargo probably won't rush to add first-class options for Maybe something like: cargo-features = ["unstable"]
[profiles.release]
unstable = {
location-detail = "none"
} |
Would profile rustflags be a way of handling this since you are already using unstable features anyways? This issue is more about how to create abstractions for uses of rustflags. Creating another pass-through mechanism doesn't seem in the spirit of this issue. |
Some perspective from various production projects:
|
Please keep in mind that this is a tracking issue. If you have specific requests, feel free to open an issue and we can add it to this. Trying to have too much design discussion for these individual items here will likely get them lost in the noise as this tracking issue covers a wide breadth of features.
Do we need to provide an abstraction over this or continue to leave it to RUSTFLAGS?
This issue is not prescriptive about where they may live and where they will live depends on circumstances. They could live
#12738 is our issue for identifying environment config ( |
RUSTFLAGS is a low level mechanism
This is meant to track the RUSTFLAGS that should have a cargo-native way of being exposed. This won't always be one-to-one mappings and won't necessarily cover every rustc CLI feature.
--allow
,--deny
,--warn
[lints]
table RFC 3389 #12115--allow
,--deny
,--warn
--deny-warnings
functionality for all commands. #8424--target-cpu=native
--cfg
-Cinstrument-coverage
-C target-feature
target_feature
option in cargo CLI #14524Note: Keep in mind the cargo-native solution could live in:
Cargo.toml
: if this is something considered static for the project.cargo/config.toml
(which includes env, cli): if this is something that changes between environments (including users and platforms) or is transientSee also
The text was updated successfully, but these errors were encountered: