Skip to content

Commit

Permalink
fix(core): build on unix failing (#8761)
Browse files Browse the repository at this point in the history
* fix(core): build on unix failing

* change file
  • Loading branch information
lucasfernog authored Feb 4, 2024
1 parent 3bf6bc3 commit fe67ab7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-tauri-build-unix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Workaround for zbus not enabling the proper Cargo features for its nix dependency.
5 changes: 4 additions & 1 deletion core/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ targets = [
]

[package.metadata.cargo-udeps.ignore]
normal = [ "reqwest" ]
normal = [ "reqwest", "nix" ]
build = [ "tauri-build" ]
development = [ "quickcheck_macros" ]

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fe67ab7

Please sign in to comment.