Skip to content

Commit 0ac66d1

Browse files
committed
Use rustdoc-map even without the upstream cargo patch
1 parent f13f4d0 commit 0ac66d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/docbuilder/rustwide_builder.rs

+6
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,12 @@ impl RustwideBuilder {
579579

580580
// Add docs.rs specific arguments
581581
let mut cargo_args = Vec::new();
582+
// Show the command line Rustdoc is invoked with
583+
cargo_args.push("--verbose".into());
584+
// We know that `metadata` unconditionally passes `-Z rustdoc-map`.
585+
// Don't copy paste this, since that fact is not stable and may change in the future.
586+
// Normally we would need -Z unstable-options, but we currently pass that too.
587+
cargo_args.push(r#"--config=doc.extern-map.registries.crates-io="https://docs.rs""#.into());
582588
if let Some(cpu_limit) = self.config.build_cpu_limit {
583589
cargo_args.push(format!("-j{}", cpu_limit));
584590
}

0 commit comments

Comments
 (0)