Skip to content

Commit

Permalink
formatting and doc adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
photovoltex committed Mar 14, 2024
1 parent cf75b62 commit 5238482
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/command/type_aliases.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use tauri::{AppHandle, State, Window};

#[allow(unused_imports)]
#[cfg(doc)]
use tauri_interop_macro::command;

/// Type alias to easier identify [State] via [command] macro
Expand Down
15 changes: 10 additions & 5 deletions test-project/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
#![feature(iter_intersperse)]
#![feature(proc_macro_hygiene)]

#[cfg(target_family = "wasm")]
pub use tauri_interop::*;

#[tauri_interop::commands]
pub mod cmd;

pub mod model;

#[cfg(target_family = "wasm")]
pub use tauri_interop::*;

// todo: see that we maybe resolve this automatically when the commands are autogenerated by the feature
tauri_interop::combine_handlers!( cmd, model::other_cmd, model::test_mod, model::NamingTestEnumField, model::naming_test_default );
tauri_interop::combine_handlers!(
cmd,
model::other_cmd,
model::test_mod,
model::NamingTestEnumField,
model::naming_test_default
);

0 comments on commit 5238482

Please sign in to comment.