Selaa lähdekoodia

fix(core): build on unix failing (#8761)

* fix(core): build on unix failing

* change file
Lucas Fernandes Nogueira 1 vuosi sitten
vanhempi
sitoutus
fe67ab7f25
2 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 5 0
      .changes/fix-tauri-build-unix.md
  2. 4 1
      core/tauri/Cargo.toml

+ 5 - 0
.changes/fix-tauri-build-unix.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch:bug
+---
+
+Workaround for zbus not enabling the proper Cargo features for its nix dependency.

+ 4 - 1
core/tauri/Cargo.toml

@@ -37,7 +37,7 @@ targets = [
 ]
 
 [package.metadata.cargo-udeps.ignore]
-normal = [ "reqwest" ]
+normal = [ "reqwest", "nix" ]
 build = [ "tauri-build" ]
 development = [ "quickcheck_macros" ]
 
@@ -88,6 +88,9 @@ cocoa = "0.25"
 objc = "0.2"
 window-vibrancy = "0.4"
 
+[target.'cfg(unix)'.dependencies]
+nix = { version = "0.26.0", default-features = false, features = ["user", "socket", "uio"] }
+
 [target."cfg(windows)".dependencies]
 webview2-com = "0.28"
 window-vibrancy = "0.4"