Skip to content

Commit b37741d

Browse files
fix(feature/specta): Resolve error when using latest version of specta with tauri specta feature (#11871)
* Update specta feature to use latest specta version; add specta-util dependency (required in specta v2 rc.20) * Add .changes file * Update crates/tauri/Cargo.toml --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent 2b8a981 commit b37741d

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

.changes/specta-feature-fix.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Fix `specta-util` dependency not found error when using `specta` feature

Cargo.lock

+15-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/tauri/Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,14 @@ tracing = { version = "0.1", optional = true }
8585
heck = "0.5"
8686
log = "0.4"
8787
dunce = "1"
88-
specta = { version = "^2.0.0-rc.16", optional = true, default-features = false, features = [
88+
specta = { version = "^2.0.0-rc.20", optional = true, default-features = false, features = [
8989
"function",
9090
"derive",
9191
] }
92-
92+
# TODO: remove when specta releases rc.21
93+
specta-util = { version = "^0.0.7", optional = true, default-features = false, features = [
94+
"export",
95+
] }
9396
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\", target_os = \"windows\", target_os = \"macos\"))".dependencies]
9497
muda = { version = "0.15", default-features = false, features = ["serde"] }
9598
tray-icon = { version = "0.19", default-features = false, features = [
@@ -192,7 +195,7 @@ config-toml = ["tauri-macros/config-toml"]
192195
image-ico = ["image/ico"]
193196
image-png = ["image/png"]
194197
macos-proxy = ["tauri-runtime-wry/macos-proxy"]
195-
specta = ["dep:specta"]
198+
specta = ["dep:specta", "dep:specta-util"]
196199

197200
[[example]]
198201
name = "commands"

0 commit comments

Comments
 (0)