Skip to content

Commit

Permalink
fix(feature/specta): Resolve error when using latest version of spect…
Browse files Browse the repository at this point in the history
…a with tauri specta feature (tauri-apps#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 <[email protected]>
  • Loading branch information
johncarmack1984 and lucasfernog authored Dec 5, 2024
1 parent 2b8a981 commit b37741d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changes/specta-feature-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Fix `specta-util` dependency not found error when using `specta` feature
17 changes: 15 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions crates/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@ tracing = { version = "0.1", optional = true }
heck = "0.5"
log = "0.4"
dunce = "1"
specta = { version = "^2.0.0-rc.16", optional = true, default-features = false, features = [
specta = { version = "^2.0.0-rc.20", optional = true, default-features = false, features = [
"function",
"derive",
] }

# TODO: remove when specta releases rc.21
specta-util = { version = "^0.0.7", optional = true, default-features = false, features = [
"export",
] }
[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]
muda = { version = "0.15", default-features = false, features = ["serde"] }
tray-icon = { version = "0.19", default-features = false, features = [
Expand Down Expand Up @@ -192,7 +195,7 @@ config-toml = ["tauri-macros/config-toml"]
image-ico = ["image/ico"]
image-png = ["image/png"]
macos-proxy = ["tauri-runtime-wry/macos-proxy"]
specta = ["dep:specta"]
specta = ["dep:specta", "dep:specta-util"]

[[example]]
name = "commands"
Expand Down

0 comments on commit b37741d

Please sign in to comment.