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, ),