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 b39d02a commit b76ec77Copy full SHA for b76ec77
build.rs
@@ -11,14 +11,14 @@ use std::io::Write;
11
use std::path::Path;
12
13
pub fn main() {
14
- if let Ok(profile) = env::var("PROFILE") {
15
- println!("cargo:rustc-cfg=build={profile:?}");
16
- }
17
-
18
const ENV_FEATURE_PREFIX: &str = "CARGO_FEATURE_";
19
const FEATURE_PREFIX: &str = "feat_";
20
const OVERRIDE_PREFIX: &str = "uu_";
21
+ if let Ok(profile) = env::var("PROFILE") {
+ println!("cargo:rustc-cfg=build={profile:?}");
+ }
+
22
let out_dir = env::var("OUT_DIR").unwrap();
23
24
let mut crates = Vec::new();
0 commit comments