Use -Z rustdoc-map instead of rewriting it - #1188
Conversation
|
A crate to test #1166 with is |
|
Tested with this little patch applied on top: diff --git src/docbuilder/rustwide_builder.rs src/docbuilder/rustwide_builder.rs
index 83592dc..1a80aea 100644
--- src/docbuilder/rustwide_builder.rs
+++ src/docbuilder/rustwide_builder.rs
@@ -579,6 +579,9 @@ impl RustwideBuilder {
// Add docs.rs specific arguments
let mut cargo_args = Vec::new();
+ cargo_args.push("--verbose".into());
+ cargo_args.push(r#"--config=doc.extern-map.registries.crates-io="https://docs.rs""#.into());
+ cargo_args.push("-Zunstable-options".into());
if let Some(cpu_limit) = self.config.build_cpu_limit {
cargo_args.push(format!("-j{}", cpu_limit));
}On And on this branch I see So this definitely fixes #1166 |
|
Thanks, that definitely looks like the right approach since it means the hyperlinks will work even when built with old versions of nightly :) This is ready for re-review. |
|
Random note on this: it'd be nice if |
|
That would be nice, yeah - it needs rustdoc changes first, though. |
Closes #1177, closes #1165. Fixes #1166.