Crate tauri_interop_macro
source ·Expand description
The macros use by tauri-interop
to generate dynamic code depending on the target
Without tauri-interop
the generated code can’t compile.
Macros§
- Collects all commands annotated with
tauri_interop::command
and provides these with aget_handlers()
in the current mod - Combines multiple modules containing commands
- Simple macro to include multiple imports (seperated by
|
) not in wasm - Simple macro to include multiple imports (seperated by
|
) only in wasm
Attribute Macros§
- Generates the wasm counterpart to a defined
tauri::command
- Conditionally adds the macro binding or
tauri::command
to a struct - Marks a mod that contains commands
Derive Macros§
- Emit
event
Generates a defaultEmit
implementation for the given struct. - EmitField
event
Generates a defaultEmitField
implementation for the given struct. - Event
event
- Listen
event
Generates a defaultListen
implementation for the given struct. - ListenField
event
Generates a defaultListenField
implementation for the given struct.