diff --git a/core/tauri/build.rs b/core/tauri/build.rs index cf3ec2a6f..c5b45b798 100644 --- a/core/tauri/build.rs +++ b/core/tauri/build.rs @@ -20,7 +20,7 @@ fn has_feature(feature: &str) -> bool { .unwrap() .push(feature.to_string()); - // when a feature is enabled, Cargo sets the `CARGO_FEATURE_` env var to 1 // https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts std::env::var(format!("CARGO_FEATURE_{}", AsShoutySnakeCase(feature))) .map(|x| x == "1")