From c9ede1c55adac0db38b3186ee16b78fcda7f25ac Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 8 Jan 2025 14:30:09 +0100 Subject: [PATCH] fix(geo/haptics): Add specta_util fixes #2279 --- .changes/specta-util.md | 8 ++++++++ Cargo.lock | 14 ++++++++++++++ Cargo.toml | 4 ++++ plugins/geolocation/Cargo.toml | 1 + plugins/haptics/Cargo.toml | 1 + 5 files changed, 28 insertions(+) create mode 100644 .changes/specta-util.md diff --git a/.changes/specta-util.md b/.changes/specta-util.md new file mode 100644 index 00000000..6f934e0c --- /dev/null +++ b/.changes/specta-util.md @@ -0,0 +1,8 @@ +--- +geolocation: patch +geolocation-js: patch +haptics: patch +haptics-js: patch +--- + +Added `specta-util` to fix a "dependency not found" compilation error. diff --git a/Cargo.lock b/Cargo.lock index 77821bf1..381835f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5803,6 +5803,18 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "specta-util" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8113d65b58a6de3184b01d6df9e50b6d4bbe7f724251f576d84f23228824456" +dependencies = [ + "ctor", + "serde", + "specta", + "specta-macros", +] + [[package]] name = "spin" version = "0.9.8" @@ -6585,6 +6597,7 @@ dependencies = [ "serde", "serde_json", "specta", + "specta-util", "tauri", "tauri-plugin", "thiserror 2.0.9", @@ -6611,6 +6624,7 @@ dependencies = [ "serde", "serde_json", "specta", + "specta-util", "tauri", "tauri-plugin", "thiserror 2.0.9", diff --git a/Cargo.toml b/Cargo.toml index d7543fd8..34312a3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,10 @@ url = "2" schemars = "0.8" dunce = "1" specta = "=2.0.0-rc.20" +# TODO: remove when specta releases rc.21 +specta-util = { version = "^0.0.7", default-features = false, features = [ + "export", +] } glob = "0.3" zbus = "4" #tauri-specta = "=2.0.0-rc.11" diff --git a/plugins/geolocation/Cargo.toml b/plugins/geolocation/Cargo.toml index bd2e343e..ab4ecac5 100644 --- a/plugins/geolocation/Cargo.toml +++ b/plugins/geolocation/Cargo.toml @@ -30,6 +30,7 @@ tauri = { workspace = true, features = ["specta"] } log = { workspace = true } thiserror = { workspace = true } specta = { workspace = true } +specta-util = { workspace = true } [target.'cfg(target_os = "ios")'.dependencies] tauri = { workspace = true, features = ["wry"] } diff --git a/plugins/haptics/Cargo.toml b/plugins/haptics/Cargo.toml index 5b7daa0f..4aa10942 100644 --- a/plugins/haptics/Cargo.toml +++ b/plugins/haptics/Cargo.toml @@ -30,6 +30,7 @@ tauri = { workspace = true, features = ["specta"] } log = { workspace = true } thiserror = { workspace = true } specta = { workspace = true } +specta-util = { workspace = true } [target.'cfg(target_os = "ios")'.dependencies] tauri = { workspace = true, features = ["wry"] }