--extern-html-root-url uses library names to identify dependencies, failing to handle multiple versions #76296
Labels
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
With this package that uses dependency renaming:
I tried to build documentation that can link to both of the upstream docs.rs documentation pages:
This failed to link to either of the non-inlined exports because it seems that
--extern-html-root-url
expects the library name instead, changing to use that:This successfully added links on both, but both directing to version
0.3.5
since that was the last flag specified.(I'm not sure of the correct solution for this, currently docs.rs only passes
--extern-html-root-url
for direct dependencies, so changing to use the same name as used for--extern
would work for that; but it seems to me that docs.rs should be passing a flag for all dependencies, since it's possible for documentation from a dependency of a dependency to bubble-up and be rendered, so it should be possible to set the html-root-url for them all, I'm not sure how we would identify the crates in that case).Meta
The text was updated successfully, but these errors were encountered: