Skip to content

Commit

Permalink
Add -Zrustdoc-scrape-examples to default Cargo args
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton authored and jyn514 committed Dec 16, 2022
1 parent 9f1a0c2 commit 42e661a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docbuilder/rustwide_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ impl RustwideBuilder {
r#"--config=doc.extern-map.registries.crates-io="https://docs.rs/{{pkg_name}}/{{version}}/{}""#,
target
),
// Enables the unstable rustdoc-scrape-examples feature. We are "soft launching" this feature on
// docs.rs, but once it's stable we can remove this flag.
"-Zrustdoc-scrape-examples".into(),
];
if let Some(cpu_limit) = self.config.build_cpu_limit {
cargo_args.push(format!("-j{}", cpu_limit));
Expand Down

0 comments on commit 42e661a

Please sign in to comment.