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.
I would like to use some
rustflags ONLY under RELEASE builds. For example, is there something equivalent to:
[build.dev] rustflags = [ "-C", "target-cpu=native" ]
Note that I only want those flags under RELEASE builds, and they shall have no effect under DEV builds.
Thx in advance.