diff --git a/.changes/no-default-tauri-features.md b/.changes/no-default-tauri-features.md new file mode 100644 index 0000000000..1737dbc52a --- /dev/null +++ b/.changes/no-default-tauri-features.md @@ -0,0 +1,32 @@ +--- +"authenticator": patch +"autostart": patch +"barcode-scanner": patch +"biometric": patch +"cli": patch +"clipboard-manager": patch +"deep-link": patch +"dialog": patch +"fs": patch +"global-shortcut": patch +"http": patch +"localhost": patch +"log-plugin": patch +"nfc": patch +"notification": patch +"os": patch +"persisted-scope": patch +"positioner": patch +"process": patch +"shell": patch +"single-instance": patch +"sql": patch +"store": patch +"stronghold": patch +"updater": patch +"upload": patch +"websocket": patch +"window-state": patch +--- + +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 diff --git a/Cargo.lock b/Cargo.lock index 84ae07eb94..7e3cce4bae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3868,7 +3868,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" dependencies = [ "malloc_buf", - "objc_exception", ] [[package]] @@ -3982,15 +3981,6 @@ dependencies = [ "objc2-metal", ] -[[package]] -name = "objc_exception" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" -dependencies = [ - "cc", -] - [[package]] name = "objc_id" version = "0.1.1" diff --git a/Cargo.toml b/Cargo.toml index a09609b832..48ef17d26c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ resolver = "2" [workspace.dependencies] serde = { version = "1", features = ["derive"] } log = "0.4" -tauri = "2.0.0-beta.25" +tauri = { version = "2.0.0-beta.25", default-features = false } tauri-build = "2.0.0-beta.19" tauri-plugin = "2.0.0-beta.19" tauri-utils = "2.0.0-beta.19" diff --git a/plugins/clipboard-manager/Cargo.toml b/plugins/clipboard-manager/Cargo.toml index 5a14b681e5..d8b8cb3446 100644 --- a/plugins/clipboard-manager/Cargo.toml +++ b/plugins/clipboard-manager/Cargo.toml @@ -24,6 +24,9 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } +[target.'cfg(target_os = "ios")'.dependencies] +tauri = { workspace = true, features = ["wry"] } + [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] arboard = "3" image = "0.24" diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index b63027f4d6..0a61d60e7e 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -26,6 +26,9 @@ thiserror = { workspace = true } dunce = { workspace = true } tauri-plugin-fs = { path = "../fs", version = "2.0.0-beta.11" } +[target.'cfg(target_os = "ios")'.dependencies] +tauri = { workspace = true, features = ["wry"] } + [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] rfd = { version = "0.14", default-features = false, features = [ "tokio", "gtk3", "common-controls-v6" ] } raw-window-handle = "0.6" diff --git a/plugins/notification/Cargo.toml b/plugins/notification/Cargo.toml index e22ea5563c..be9f7b0b22 100644 --- a/plugins/notification/Cargo.toml +++ b/plugins/notification/Cargo.toml @@ -28,6 +28,9 @@ time = { version = "0.3", features = [ "serde", "parsing", "formatting" ] } url = { version = "2", features = [ "serde" ] } serde_repr = "0.1" +[target.'cfg(target_os = "ios")'.dependencies] +tauri = { workspace = true, features = ["wry"] } + [target."cfg(windows)".dependencies] win7-notifications = { version = "0.4.4", optional = true } windows-version = { version = "0.1", optional = true } diff --git a/plugins/shell/Cargo.toml b/plugins/shell/Cargo.toml index 3768b28c94..d233ee0e58 100644 --- a/plugins/shell/Cargo.toml +++ b/plugins/shell/Cargo.toml @@ -31,3 +31,6 @@ regex = "1" open = { version = "5", features = [ "shellexecute-on-windows" ] } encoding_rs = "0.8" os_pipe = "1" + +[target.'cfg(target_os = "ios")'.dependencies] +tauri = { workspace = true, features = ["wry"] } diff --git a/plugins/store/Cargo.toml b/plugins/store/Cargo.toml index 73f9d6fef7..99523da222 100644 --- a/plugins/store/Cargo.toml +++ b/plugins/store/Cargo.toml @@ -23,3 +23,6 @@ tauri = { workspace = true } log = { workspace = true } thiserror = { workspace = true } dunce = { workspace = true } + +[target.'cfg(target_os = "ios")'.dependencies] +tauri = { workspace = true, features = ["wry"] }