Expand description
rustbridge-macros - Procedural macros for rustbridge plugins
This crate provides:
#[rustbridge_plugin]- Mark a struct as a plugin implementation#[rustbridge_handler]- Mark a method as a message handler#[derive(Message)]- Derive message traits for request/response typesrustbridge_entry!- Generate the FFI entry point
Macros§
- impl_
plugin - Macro to implement the Plugin trait with handler dispatch
- rustbridge_
entry - Generate the FFI entry point for a plugin
Attribute Macros§
- rustbridge_
handler - Attribute for marking a method as a message handler
- rustbridge_
plugin - Attribute for marking a struct as a rustbridge plugin
Derive Macros§
- Message
- Derive macro for message types