-
Notifications
You must be signed in to change notification settings - Fork 198
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
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.