-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Cargo Doc Output Filename Collision #10368
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
Comments
This still seems to be an issue on nightly-2022-10-27. For people that are encountering this, an alternative solution to setting |
Required to work around rust-lang/cargo#10368.
Required to work around rust-lang/cargo#10368.
Required to work around rust-lang/cargo#10368.
documentation for A better workaround, if you still want to generate |
`cargo` has a bug that prevents correct handling of similarly named crates in the same package. Rename the internal library crate to prevent error messages. rust-lang/cargo#10368
`cargo` has a bug that prevents correct handling of similarly named crates in the same package. Rename the internal library crate to prevent error messages. rust-lang/cargo#10368
Problem
Unsure if this is a cargo issue or rust compiler issue.
cargo doc
started yielding the follow error when using thenightly-2021-10-14
compiler or later:I am working with a monorepo which combines several crates using a virtual workspace. Key configuration items that appear to cause this issue:
Prior compiler versions do not exhibit this behavior.
Minimal repository demonstrating this issue: https://github.com/dricross/cargo-doc-collision-minimal
Steps
cargo doc
Possible Solution(s)
No response
Notes
nightly-2021-10-13
causescargo doc
to succeed[build]
section of configuration file and runningcargo doc --target x86_64-unknown-linux-gnu
will succeed.opt-level
indev
profile to 0 will causecargo doc
to succeed.cargo doc --release
will continue to fail.nightly-2021-10-14
is the first to display this behavior forx86_64-unknown-linux-gnu
andarmv7r-none-eabihf
targets. Prior nightly rustc versions will display this behavior whenx86_64-apple-darwin
is specified in the[build]
section of configuration fileVersion
The text was updated successfully, but these errors were encountered: