From fe67ab7f2532c668b35f15415d876e576b3fb74e Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 4 Feb 2024 15:42:55 -0300 Subject: [PATCH] fix(core): build on unix failing (#8761) * fix(core): build on unix failing * change file --- .changes/fix-tauri-build-unix.md | 5 +++++ core/tauri/Cargo.toml | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-tauri-build-unix.md 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"