We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9246c commit edba858Copy full SHA for edba858
src/docbuilder/rustwide_builder.rs
@@ -342,8 +342,18 @@ impl RustwideBuilder {
342
)?;
343
344
successful_targets.push(res.target.clone());
345
+
346
+ // this is a breaking change, don't enable it by default
347
+ let build_specific = std::env::var("DOCS_RS_BUILD_ONLY_SPECIFIED_TARGETS")
348
+ .map(|s| s == "true").unwrap_or(false);
349
+ let strs: Vec<_>;
350
+ let targets: &[&str] = if build_specific {
351
+ strs = metadata.extra_targets.iter().map(|s| s.as_str()).collect();
352
+ &strs
353
+ } else { TARGETS };
354
355
// Then build the documentation for all the targets
- for target in TARGETS {
356
+ for target in targets {
357
if *target == res.target {
358
continue;
359
}
0 commit comments