Skip to content
New issue

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

Support out-dir in [build] section of Cargo configuration #7555

Closed
ttencate opened this issue Oct 30, 2019 · 0 comments · Fixed by #7810
Closed

Support out-dir in [build] section of Cargo configuration #7555

ttencate opened this issue Oct 30, 2019 · 0 comments · Fixed by #7810
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

Comments

@ttencate
Copy link

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 of cargo 1.40.0-nightly (3ba5f2717 2019-10-22)):

$ cargo build
warning: unused key `build.out-dir` in config file `/.../.cargo/config`

Notes
target-dir is supported, so this just seems like a missing implementation to me rather than intentional design.

@ttencate ttencate added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 30, 2019
@ehuss ehuss added A-configuration Area: cargo config files and env vars Z-out-dir Nightly: --out-dir labels Nov 8, 2019
bors added a commit that referenced this issue Jan 27, 2020
…lexcrichton

Support out-dir in build section of Cargo configuration file

Fixed #7555.
@bors bors closed this as completed in 4a1ba1c Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants