Skip to content

Commit b5b6047

Browse files
Bump Specta & fix trailing comma's
1 parent 660ae93 commit b5b6047

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ panic_in_result_fn = { level = "warn", priority = -1 }
6262

6363
[workspace.dependencies]
6464
tauri = { version = "=2.0.0-rc.0" }
65-
specta = { version = "=2.0.0-rc.19" }
66-
specta-typescript = { version = "0.0.6" }
67-
specta-jsdoc = { version = "0.0.6" }
65+
specta = { version = "=2.0.0-rc.20" }
66+
specta-typescript = { version = "0.0.7" }
67+
specta-jsdoc = { version = "0.0.7" }
6868

6969
# [patch.crates-io]
7070
# tauri = { git = "https://github.com/oscartbeaumont/tauri.git", rev = "ddc64b706a7f2db271d40e9b216187b1aa153efa" }

examples/app/src-tauri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn main() {
125125
generic::<tauri::Wry>,
126126
deprecated,
127127
typesafe_errors_using_thiserror,
128-
typesafe_errors_using_thiserror_with_value
128+
typesafe_errors_using_thiserror_with_value,
129129
])
130130
.events(tauri_specta::collect_events![crate::DemoEvent, EmptyEvent])
131131
.ty::<Custom>()

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
//!
1515
//! ```sh
1616
//! # Always required
17-
//! cargo add tauri@=2.0.0-rc.0 specta@=2.0.0-rc.19
17+
//! cargo add tauri@=2.0.0-rc.0 specta@=2.0.0-rc.20
1818
//!
1919
//! # Typescript
20-
//! cargo add specta-typescript@0.0.6
20+
//! cargo add specta-typescript@0.0.7
2121
//! cargo add tauri-specta@=2.0.0-rc.12 --features derive,typescript
2222
//!
2323
//! # JSDoc
24-
//! cargo add specta-jsdoc@0.0.6
24+
//! cargo add specta-jsdoc@0.0.7
2525
//! cargo add tauri-specta@=2.0.0-rc.12 --features derive,javascript
2626
//! ```
2727
//!

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
///
1414
#[macro_export]
1515
macro_rules! collect_commands {
16-
($($b:tt $(:: $($p:ident)? $(<$g:path>)? )* ),*) => {
16+
($($b:ident $(:: $($p:ident)? $(<$($g:path),*>)? )* ),* $(,)?) => {
1717
// We strip generics (::<...>) from being parsed to Tauri as it doesn't support them.
1818
$crate::internal::command(
1919
::tauri::generate_handler![$($b $($(::$p)? )* ),*],
20-
::specta::function::collect_functions![$($b $($(::$p)? $(::<$g>)? )* ),*],
20+
::specta::function::collect_functions![$($b $($(::$p)? $(::<$($g),*>)? )* ),*],
2121
)
2222
};
2323
}

0 commit comments

Comments
 (0)