1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Tauri-Interop is a library that provides macros to improve developing tauri apps with a rust
//! frontend by generating frontend implementation out of the backend definitions.
//!
//! The main macros intended to be used are:
//! - [macro@command], which is intended to be used as replacement to [macro@tauri::command]
//! - [macro@Event], that provides an easier usage of the [Events feature of tauri](https://v2.tauri.app/develop/calling-frontend/)
//! - derives [event::Listen] when compiling to wasm and [event::Emit] otherwise
//!
//! Additionally, some QOL macros ([host_usage] and [wasm_usage]) are provided that
//! reduce some drawbacks when simultaneously compiling to wasm and the host architecture.
//!
//! ### Explanation and Examples
//!
//! Detail explanations and example can be found on the respected traits or macros. Some
//! examples are ignored because they are only valid when compiling to wasm.
//!
//! ### Note
//!
//! The library uses resolver 2 features to allow easy inclusion without configuration. When working
//! with virtual workspaces the resolver defaults to 1 in which case it is required to set the
//! resolver manually to version 2, otherwise the [target specific compilation](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies)
//! will not resolve correctly. When the wrong resolver is used, an error should state that the
//! [event::Listen] trait is missing.
pub use binding;
pub use *;
pub use ;
pub use ;
/// wrapped bindings for easier use in the generated wasm commands
/// event traits and overall logic for event emitting and listening
// re-export tauri ipc for usage in the command proc-macro of tauri
pub use ipc;