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§

collect_commands
Collects all commands annotated with tauri_interop::command and provides these with a get_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§

Emitevent
Generates a default Emit implementation for the given struct.
EmitFieldevent
Generates a default EmitField implementation for the given struct.
Eventevent
Conditionally adds Listen or Emit to a struct.
Listenevent
Generates a default Listen implementation for the given struct.
ListenFieldevent
Generates a default ListenField implementation for the given struct.
ManagedEmitevent and initial_value
Auto implements the ManagedEmit trait from tauri_interop when compiling to the host