Skip to content

Commit b0d206f

Browse files
committed
fix: webkit2gtk only import in linux cargo.toml
1 parent eaa8b29 commit b0d206f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src-tauri/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ serde_json = "1.0"
1818
once_cell = "1.19.0"
1919
percent-encoding = "2.3"
2020
regex = "1.10.2"
21-
webkit2gtk = "0.18" # if tauri build fails, make sure to match this version to what we have in tauri
2221
serde = { version = "1.0", features = ["derive"] }
2322
tauri = { version = "1.5.4", features = [ "cli", "api-all", "updater", "devtools", "linux-protocol-headers"] }
2423
winapi = { version = "0.3", features = ["fileapi"] }
2524
tauri-plugin-fs-extra = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
2625
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
2726

27+
[target.'cfg(target_os = "linux")'.dependencies]
28+
webkit2gtk = "0.18" # if tauri build fails, make sure to match this version to what we have in tauri
29+
2830
[features]
2931
# by default Tauri runs in production mode
3032
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL

0 commit comments

Comments
 (0)