-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo metadata
does not take CARGO_BUILD_TARGET into account
#8791
Comments
|
I see. Is there a way to get the doc directory from I'd prefer to avoid having to mimic cargo's logic for determining the structure within the target/ directory, AFAIK that's not intended to be stable. |
I think the specific layout rules are stable and not something we will likely change. That is:
It doesn't look like |
I'm not running cargo directly, so I have to be able to find the information after the fact. It sounds like there isn't currently a way to do that - would you take a PR adding |
We are a little reluctant to add the default target to Would it work to have something like |
I'm a little confused why this needs a new command ...
Where could I learn more about this? |
Also, FWIW |
https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#multitarget and #7004 and #6784 |
Problem
cargo metadata
should print the correct target directory, but whenCARGO_BUILD_TARGET
is set, still prints the default instead of the directory that will actually be used.Steps
Possible Solution(s)
Add the target directory to
target_directory
.Notes
Output of
cargo version
:cargo 1.48.0-nightly (9d1a4863a 2020-10-05)
The text was updated successfully, but these errors were encountered: