I'm using Cargo Features (https://doc.rust-lang.org/cargo/reference/features.html) to specify conditional compilation options. Is there a way to enable a set of these features for a given Cargo profile (https://doc.rust-lang.org/cargo/reference/profiles.html)?
For example, something like this (which does not seem to work):
[features]
foo = []
[profile.test]
features = ["foo"]
So that I don't have to write cargo test --features "foo"
but will instead just write cargo test
.