Skip to content

Commit 42e661a

Browse files
willcrichtonjyn514
authored andcommitted
Add -Zrustdoc-scrape-examples to default Cargo args
1 parent 9f1a0c2 commit 42e661a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/docbuilder/rustwide_builder.rs

+3
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ impl RustwideBuilder {
736736
r#"--config=doc.extern-map.registries.crates-io="https://docs.rs/{{pkg_name}}/{{version}}/{}""#,
737737
target
738738
),
739+
// Enables the unstable rustdoc-scrape-examples feature. We are "soft launching" this feature on
740+
// docs.rs, but once it's stable we can remove this flag.
741+
"-Zrustdoc-scrape-examples".into(),
739742
];
740743
if let Some(cpu_limit) = self.config.build_cpu_limit {
741744
cargo_args.push(format!("-j{}", cpu_limit));

0 commit comments

Comments
 (0)