Add a build.build-target config key #6825
Conversation
This key allows overriding the default target for build operations (e.g. `cargo build`, `cargo check`, `cargo run`), but not for test operations (`cargo test`, `cargo bench`).
|
r? @ehuss (rust_highfive has picked a reviewer for you, use r? to override) |
|
Thanks for the PR! This seems like a sort of odd feature to me though... The naming "build target" makes me think that I suspect though this is something we'd want to for sure land as unstable rather than insta-stable |
|
Thanks for taking a look! I agree that setting different default targets for I'm currently exploring an alternative solution to my problem: Custom test frameworks (rust-lang/rust#53410) might allow to run |
|
I managed to get custom test frameworks working, so I'm now able to run |
This key allows overriding the default target for build operations (e.g.
cargo build,cargo check,cargo run), but not for test operations (cargo test,cargo bench).See #6784 and https://internals.rust-lang.org/t/set-default-target-for-cargo-build-but-not-for-cargo-test/9777 for motivation.
Fixes #6784