diff --git a/.changes/fix-tauri-build-unix.md b/.changes/fix-tauri-build-unix.md new file mode 100644 index 000000000..b9d0de876 --- /dev/null +++ b/.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. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 11e790a25..843d027b4 100644 --- a/core/tauri/Cargo.toml +++ b/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"