We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f13f4d0 commit 0ac66d1Copy full SHA for 0ac66d1
src/docbuilder/rustwide_builder.rs
@@ -579,6 +579,12 @@ impl RustwideBuilder {
579
580
// Add docs.rs specific arguments
581
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());
588
if let Some(cpu_limit) = self.config.build_cpu_limit {
589
cargo_args.push(format!("-j{}", cpu_limit));
590
}
0 commit comments