Browse Source

fix(core): properly check `CARGO_FEATURE_` env vars

Lucas Nogueira 3 năm trước cách đây
mục cha
commit
2189416a76
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/tauri/build.rs

+ 1 - 1
core/tauri/build.rs

@@ -21,7 +21,7 @@ fn has_feature(feature: &str) -> bool {
   // https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
   std::env::var(format!(
     "CARGO_FEATURE_{}",
-    feature.to_uppercase().to_snake_case()
+    feature.to_snake_case().to_uppercase()
   ))
   .map(|x| x == "1")
   .unwrap_or(false)