Crate wry_cmd_macro

Source
Expand description

Procedural macro crate for #[command]. Use through the wry_cmd crate unless you’re building custom tools.

Attribute Macros§

command
Marks a function as a Wry IPC command. The function can take zero or one argument implementing Deserialize and return a type implementing Serialize. If omitted, no args or no return are supported. Use #[command(name = "...")] or just #[command].
commands
Attribute macro to auto-generate and register IPC commands from a trait impl.