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::commandand 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::commandto a struct - Marks a mod that contains commands
Derive Macros§
- Emit
eventGenerates a defaultEmitimplementation for the given struct. - EmitField
eventGenerates a defaultEmitFieldimplementation for the given struct. - Event
event - Listen
eventGenerates a defaultListenimplementation for the given struct. - ListenField
eventGenerates a defaultListenFieldimplementation for the given struct.