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::command
and 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::command
to a struct - commands
- Marks a mod that contains commands
Derive Macros§
- Emit
event
- Generates a default
Emit
implementation for the given struct. - Emit
Field event
- Generates a default
EmitField
implementation for the given struct. - Event
event
- Conditionally adds Listen or Emit to a struct.
- Listen
event
- Generates a default
Listen
implementation for the given struct. - Listen
Field event
- Generates a default
ListenField
implementation for the given struct. - Managed
Emit event
andinitial_value
- Auto implements the
ManagedEmit
trait fromtauri_interop
when compiling to the host