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.
CARGO_TARGET_DIR
1 parent 571e0a7 commit 232ca2dCopy full SHA for 232ca2d
src/config.rs
@@ -82,7 +82,10 @@ impl Config {
82
dependencies_crate_manifest_path: None,
83
dependency_builder: CommandBuilder::cargo(),
84
num_test_threads: std::thread::available_parallelism().unwrap(),
85
- out_dir: std::env::current_dir().unwrap().join("target/ui"),
+ out_dir: std::env::var_os("CARGO_TARGET_DIR")
86
+ .map(PathBuf::from)
87
+ .unwrap_or_else(|| std::env::current_dir().unwrap().join("target"))
88
+ .join("ui"),
89
edition: Some("2021".into()),
90
}
91
0 commit comments