Crate tauri_macros

Source

Macros§

generate_context
Reads a Tauri config file and generates a ::tauri::Context based on the content.
generate_handler
Accepts a list of commands functions. Creates a handler that allows commands to be called from JS with invoke().

Attribute Macros§

command
Mark a function as a command handler. It creates a wrapper function with the necessary glue code.