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§
- collect_
commands - Collects all commands annotated with
tauri_interop::commandand provides these with aget_handlers()in the current mod - combine_
handlers - Combines multiple modules containing commands
- host_
usage - Simple macro to include multiple imports (seperated by
|) not in wasm - wasm_
usage - Simple macro to include multiple imports (seperated by
|) only in wasm
Attribute Macros§
- binding
- Generates the wasm counterpart to a defined
tauri::command - command
- Conditionally adds the macro binding or
tauri::commandto a struct - commands
- Marks a mod that contains commands
Derive Macros§
- Emit
event - Generates a default
Emitimplementation for the given struct. - Emit
Field event - Generates a default
EmitFieldimplementation for the given struct. - Event
event - Conditionally adds Listen or Emit to a struct.
- Listen
event - Generates a default
Listenimplementation for the given struct. - Listen
Field event - Generates a default
ListenFieldimplementation for the given struct. - Managed
Emit eventandinitial_value - Auto implements the
ManagedEmittrait fromtauri_interopwhen compiling to the host