Support out-dir in [build] section of Cargo configuration #7555
Labels
A-configuration
Area: cargo config files and env vars
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Z-out-dir
Nightly: --out-dir
Describe the problem you are trying to solve
One of my projects (Godot) needs compiled libraries to be put in a very specific location. Leaving them in
build
is not useful, because I'm ignoring the entire containing directory.Describe the solution you'd like
The unstable
--out-dir
flag to Cargo (tracking issue: #6790) is ideal for this. But because the output location is always the same, I'd like to put it in.cargo/config
.But alas, even though
target-dir
is supported in Cargo configuration files,out-dir
is not (as ofcargo 1.40.0-nightly (3ba5f2717 2019-10-22)
):Notes
target-dir
is supported, so this just seems like a missing implementation to me rather than intentional design.The text was updated successfully, but these errors were encountered: