Skip to content

Commit

Permalink
Bump Specta & fix trailing comma's
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Aug 4, 2024
1 parent 660ae93 commit b5b6047
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ panic_in_result_fn = { level = "warn", priority = -1 }

[workspace.dependencies]
tauri = { version = "=2.0.0-rc.0" }
specta = { version = "=2.0.0-rc.19" }
specta-typescript = { version = "0.0.6" }
specta-jsdoc = { version = "0.0.6" }
specta = { version = "=2.0.0-rc.20" }
specta-typescript = { version = "0.0.7" }
specta-jsdoc = { version = "0.0.7" }

# [patch.crates-io]
# tauri = { git = "https://github.com/oscartbeaumont/tauri.git", rev = "ddc64b706a7f2db271d40e9b216187b1aa153efa" }
Expand Down
2 changes: 1 addition & 1 deletion examples/app/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn main() {
generic::<tauri::Wry>,
deprecated,
typesafe_errors_using_thiserror,
typesafe_errors_using_thiserror_with_value
typesafe_errors_using_thiserror_with_value,
])
.events(tauri_specta::collect_events![crate::DemoEvent, EmptyEvent])
.ty::<Custom>()
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
//!
//! ```sh
//! # Always required
//! cargo add tauri@=2.0.0-rc.0 specta@=2.0.0-rc.19
//! cargo add tauri@=2.0.0-rc.0 specta@=2.0.0-rc.20
//!
//! # Typescript
//! cargo add [email protected].6
//! cargo add [email protected].7
//! cargo add tauri-specta@=2.0.0-rc.12 --features derive,typescript
//!
//! # JSDoc
//! cargo add [email protected].6
//! cargo add [email protected].7
//! cargo add tauri-specta@=2.0.0-rc.12 --features derive,javascript
//! ```
//!
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
///
#[macro_export]
macro_rules! collect_commands {
($($b:tt $(:: $($p:ident)? $(<$g:path>)? )* ),*) => {
($($b:ident $(:: $($p:ident)? $(<$($g:path),*>)? )* ),* $(,)?) => {
// We strip generics (::<...>) from being parsed to Tauri as it doesn't support them.
$crate::internal::command(
::tauri::generate_handler![$($b $($(::$p)? )* ),*],
::specta::function::collect_functions![$($b $($(::$p)? $(::<$g>)? )* ),*],
::specta::function::collect_functions![$($b $($(::$p)? $(::<$($g),*>)? )* ),*],
)
};
}
Expand Down

0 comments on commit b5b6047

Please sign in to comment.