Skip to content

Commit fe67ab7

Browse files
authored
fix(core): build on unix failing (#8761)
* fix(core): build on unix failing * change file
1 parent 3bf6bc3 commit fe67ab7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changes/fix-tauri-build-unix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Workaround for zbus not enabling the proper Cargo features for its nix dependency.

core/tauri/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ targets = [
3737
]
3838

3939
[package.metadata.cargo-udeps.ignore]
40-
normal = [ "reqwest" ]
40+
normal = [ "reqwest", "nix" ]
4141
build = [ "tauri-build" ]
4242
development = [ "quickcheck_macros" ]
4343

@@ -88,6 +88,9 @@ cocoa = "0.25"
8888
objc = "0.2"
8989
window-vibrancy = "0.4"
9090

91+
[target.'cfg(unix)'.dependencies]
92+
nix = { version = "0.26.0", default-features = false, features = ["user", "socket", "uio"] }
93+
9194
[target."cfg(windows)".dependencies]
9295
webview2-com = "0.28"
9396
window-vibrancy = "0.4"

0 commit comments

Comments
 (0)