-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
A-buildsArea: Building the documentation for a crateArea: Building the documentation for a crateC-enhancementCategory: This is a new featureCategory: This is a new feature
Description
Currently we're generating --extern-html-root-url
flags to pass to rustdoc ourselves:
docs.rs/src/docbuilder/rustwide_builder.rs
Lines 521 to 529 in b527df8
for dep in &cargo_metadata.root_dependencies() { | |
rustdoc_flags.push("--extern-html-root-url".to_string()); | |
rustdoc_flags.push(format!( | |
"{}=https://docs.rs/{}/{}", | |
dep.name.replace("-", "_"), | |
dep.name, | |
dep.version | |
)); | |
} |
This has issues (#1166, #1165).
Cargo has an unstable rustdoc-map
feature rust-lang/cargo#8296 intended to allow users to do a similar thing easily via a simple url template. We can likely use this instead of doing it manually.
Metadata
Metadata
Assignees
Labels
A-buildsArea: Building the documentation for a crateArea: Building the documentation for a crateC-enhancementCategory: This is a new featureCategory: This is a new feature