We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the problem you are trying to solve
I know that there is a [build] section in .cargo/config file that accepts rustflags, but the problem is, it is effective all the time.
[build]
.cargo/config
rustflags
I would like to use some rustflags ONLY under several profiles separately. For example, it would be best if there exists something equivalent to:
[build.dev] rustflags = [ "-Ctarget-cpu=native", # some other flags ]
Note that I only want those flags under RELEASE builds, and they shall have no effect under DEV builds.
Describe the solution you'd like
Probably a [build.dev] section?
[build.dev]
Notes
The text was updated successfully, but these errors were encountered:
Oops, just found a possible dup of this issue #7878 . Anyway, are we making progress on this feature request?
Sorry, something went wrong.
Closing as a duplicate of #7878.
No branches or pull requests
Describe the problem you are trying to solve
I know that there is a
[build]
section in.cargo/config
file that acceptsrustflags
, but the problem is, it is effective all the time.I would like to use some
rustflags
ONLY under several profiles separately. For example, it would be best if there exists something equivalent to:Note that I only want those flags under RELEASE builds, and they shall have no effect under DEV builds.
Describe the solution you'd like
Probably a
[build.dev]
section?Notes
The text was updated successfully, but these errors were encountered: