Skip to content

Commit e847ced

Browse files
fix(deps): use no default features on tauri (#1402)
* Use no default feature on tauri * Add change file * typo * Revert lock file conflict * Use wry on iOS
1 parent edf8d84 commit e847ced

File tree

8 files changed

+48
-11
lines changed

8 files changed

+48
-11
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
"authenticator": patch
3+
"autostart": patch
4+
"barcode-scanner": patch
5+
"biometric": patch
6+
"cli": patch
7+
"clipboard-manager": patch
8+
"deep-link": patch
9+
"dialog": patch
10+
"fs": patch
11+
"global-shortcut": patch
12+
"http": patch
13+
"localhost": patch
14+
"log-plugin": patch
15+
"nfc": patch
16+
"notification": patch
17+
"os": patch
18+
"persisted-scope": patch
19+
"positioner": patch
20+
"process": patch
21+
"shell": patch
22+
"single-instance": patch
23+
"sql": patch
24+
"store": patch
25+
"stronghold": patch
26+
"updater": patch
27+
"upload": patch
28+
"websocket": patch
29+
"window-state": patch
30+
---
31+
32+
Use no default features on tauri for all plugins so that consumers can use `default-features = false` on tauri, note that this will still enable wry feature on iOS

Cargo.lock

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resolver = "2"
1010
[workspace.dependencies]
1111
serde = { version = "1", features = ["derive"] }
1212
log = "0.4"
13-
tauri = "2.0.0-beta.25"
13+
tauri = { version = "2.0.0-beta.25", default-features = false }
1414
tauri-build = "2.0.0-beta.19"
1515
tauri-plugin = "2.0.0-beta.19"
1616
tauri-utils = "2.0.0-beta.19"

plugins/clipboard-manager/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ tauri = { workspace = true }
2424
log = { workspace = true }
2525
thiserror = { workspace = true }
2626

27+
[target.'cfg(target_os = "ios")'.dependencies]
28+
tauri = { workspace = true, features = ["wry"] }
29+
2730
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
2831
arboard = "3"
2932
image = "0.24"

plugins/dialog/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ thiserror = { workspace = true }
2626
dunce = { workspace = true }
2727
tauri-plugin-fs = { path = "../fs", version = "2.0.0-beta.11" }
2828

29+
[target.'cfg(target_os = "ios")'.dependencies]
30+
tauri = { workspace = true, features = ["wry"] }
31+
2932
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
3033
rfd = { version = "0.14", default-features = false, features = [ "tokio", "gtk3", "common-controls-v6" ] }
3134
raw-window-handle = "0.6"

plugins/notification/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ time = { version = "0.3", features = [ "serde", "parsing", "formatting" ] }
2828
url = { version = "2", features = [ "serde" ] }
2929
serde_repr = "0.1"
3030

31+
[target.'cfg(target_os = "ios")'.dependencies]
32+
tauri = { workspace = true, features = ["wry"] }
33+
3134
[target."cfg(windows)".dependencies]
3235
win7-notifications = { version = "0.4.4", optional = true }
3336
windows-version = { version = "0.1", optional = true }

plugins/shell/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ regex = "1"
3131
open = { version = "5", features = [ "shellexecute-on-windows" ] }
3232
encoding_rs = "0.8"
3333
os_pipe = "1"
34+
35+
[target.'cfg(target_os = "ios")'.dependencies]
36+
tauri = { workspace = true, features = ["wry"] }

plugins/store/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ tauri = { workspace = true }
2323
log = { workspace = true }
2424
thiserror = { workspace = true }
2525
dunce = { workspace = true }
26+
27+
[target.'cfg(target_os = "ios")'.dependencies]
28+
tauri = { workspace = true, features = ["wry"] }

0 commit comments

Comments
 (0)