Skip to main content

Crate rustbridge_macros

Crate rustbridge_macros 

Source
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 types
  • rustbridge_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