Skip to content

Commit 57feb24

Browse files
committed
Don't build tier one targets by default
1 parent 9708001 commit 57feb24

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Config {
106106
local_docker_image: maybe_env("DOCS_RS_LOCAL_DOCKER_IMAGE")?,
107107
toolchain: env("CRATESFYI_TOOLCHAIN", "nightly".to_string())?,
108108
build_cpu_limit: maybe_env("DOCS_RS_BUILD_CPU_LIMIT")?,
109-
include_default_targets: env("DOCSRS_INCLUDE_DEFAULT_TARGETS", true)?,
109+
include_default_targets: env("DOCSRS_INCLUDE_DEFAULT_TARGETS", false)?,
110110
disable_memory_limit: env("DOCSRS_DISABLE_MEMORY_LIMIT", false)?,
111111
})
112112
}

src/docbuilder/rustwide_builder.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,10 @@ mod tests {
762762
let version = DUMMY_CRATE_VERSION;
763763
let default_target = "x86_64-unknown-linux-gnu";
764764

765-
assert_eq!(env.config().include_default_targets, true);
765+
env.override_config(|config| {
766+
assert_eq!(config.include_default_targets, false);
767+
config.include_default_targets = true;
768+
});
766769

767770
let mut builder = RustwideBuilder::init(env).unwrap();
768771
builder

0 commit comments

Comments
 (0)