-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cargo reports incorrect compiler-artifact path for rustdoc json #10149
Comments
Hmmm, also relevant, that was in a binary crate, in a library-only crate there is no path given in the final message. |
Including the path in the "executable" field was a mistake. I have posted #10171 to fix that. As for getting the path when using the JSON output, that is a bit tricky. Cargo doesn't use the flags passed to Perhaps eventually a flag for the output format could be wired directly into |
I think it would be simpler to add a way for rustdoc to report its outputs; it shouldn't be too hard to do. What format does rustc use for that, something with |
Primarily through Compared to rustdoc which is really basic: cargo/src/cargo/core/compiler/context/compilation_files.rs Lines 399 to 409 in 263b169
Cargo needs to know the outputs before it runs |
Problem
When running a
cargo rustdoc --message-format=json -- --output-format=json -Zunstable-options
command the path reported for the finalcompiler-artifact
message is wrong.Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: