Skip to content

Commit 406e6f4

Browse files
authored
fix(geo/haptics): Fix serde import error with specta feature disabled (tauri-apps#2323)
1 parent b63d724 commit 406e6f4

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.changes/fix-geo-haptics-serde.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
haptics: patch
3+
haptics-js: patch
4+
geolocation: patch
5+
geolocation-js: patch
6+
---
7+
8+
Fixed an issue that caused build failures when the `haptics` or `geolocation` plugin was used without their `specta` feature flag enabled.

.taurignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
plugins/*/permissions/autogenerated/
1+
plugins/*/permissions/autogenerated/
2+
plugins/*/android/.tauri/tauri-api/build/

plugins/geolocation/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum Error {
1414
#[cfg(mobile)]
1515
#[error(transparent)]
1616
PluginInvoke(
17-
#[serde(skip)]
17+
#[cfg_attr(feature = "specta", serde(skip))]
1818
#[from]
1919
tauri::plugin::mobile::PluginInvokeError,
2020
),

plugins/haptics/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum Error {
1414
#[cfg(mobile)]
1515
#[error(transparent)]
1616
PluginInvoke(
17-
#[serde(skip)]
17+
#[cfg_attr(feature = "specta", serde(skip))]
1818
#[from]
1919
tauri::plugin::mobile::PluginInvokeError,
2020
),

0 commit comments

Comments
 (0)