From d869c162a7d1e95629a3acbf0084bbeac3e10f77 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 22 Sep 2026 06:40:58 -0300 Subject: [PATCH] fix: geolocation and haptics plugin build fails with specta feature on --- .changes/fix-geo-haptics-specta-skip.md | 6 ++++++ plugins/geolocation/src/error.rs | 2 +- plugins/haptics/src/error.rs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changes/fix-geo-haptics-specta-skip.md diff --git a/.changes/fix-geo-haptics-specta-skip.md b/.changes/fix-geo-haptics-specta-skip.md new file mode 100644 index 000000000..c52adc335 --- /dev/null +++ b/.changes/fix-geo-haptics-specta-skip.md @@ -0,0 +1,6 @@ +--- +haptics: patch +geolocation: patch +--- + +Fixed a build failure when the `specta` feature is enabled: the `Error` type used the `#[serde(skip)]` helper attribute, which recent `specta` versions no longer register. It now uses `#[specta(skip)]`. diff --git a/plugins/geolocation/src/error.rs b/plugins/geolocation/src/error.rs index 0fba54457..f59037de8 100644 --- a/plugins/geolocation/src/error.rs +++ b/plugins/geolocation/src/error.rs @@ -14,7 +14,7 @@ pub enum Error { #[cfg(mobile)] #[error(transparent)] PluginInvoke( - #[cfg_attr(feature = "specta", serde(skip))] + #[cfg_attr(feature = "specta", specta(skip))] #[from] tauri::plugin::mobile::PluginInvokeError, ), diff --git a/plugins/haptics/src/error.rs b/plugins/haptics/src/error.rs index 0fba54457..f59037de8 100644 --- a/plugins/haptics/src/error.rs +++ b/plugins/haptics/src/error.rs @@ -14,7 +14,7 @@ pub enum Error { #[cfg(mobile)] #[error(transparent)] PluginInvoke( - #[cfg_attr(feature = "specta", serde(skip))] + #[cfg_attr(feature = "specta", specta(skip))] #[from] tauri::plugin::mobile::PluginInvokeError, ),