21 stable releases (6 major)
| 8.1.1 | Mar 17, 2026 |
|---|---|
| 8.0.0 | Feb 17, 2026 |
| 7.1.2 | Mar 11, 2026 |
| 7.1.0 | Dec 15, 2025 |
| 1.0.1 | Mar 31, 2025 |
#5 in #actor-based
181 downloads per month
Used in 9 crates
18KB
196 lines
Acton Macro
acton-macro provides procedural macros that simplify the creation of messages and actors in the Acton Reactive Application Framework. These macros reduce boilerplate and make your code more concise, allowing you to focus on building reactive, event-driven applications.
Key Features
- Simplified Message Creation: The
acton_messagemacro helps you quickly define messages that are compatible with the Acton framework. - Actor Macro Support: Procedural macros allow for cleaner and more expressive actor definitions.
- Integration with Acton:
acton-macrois designed to be used with the Acton Reactive Application Framework, a Rust framework for building reactive and scalable applications using an actor-based model.
Usage
The macros provided by acton-macro are re-exported in the Acton Reactive Application Framework, so you don't need to import them separately. When you use acton-reactive, the macros like acton_message are available for use directly.
For example:
#[acton_message]
struct MyMessage;
This macro automatically generates the necessary traits for messages to be used with actors in the Acton framework. or
#[acton_actor]
struct MyActor;
This macro automatically generates the necessary traits for structs to be used as actors in the Acton framework.
Learn More
For more advanced usage and detailed examples of how to use these macros in building reactive systems, refer to the Acton Reactive Application Framework documentation and examples.
License
This project is licensed under both the MIT and Apache-2.0 licenses. See the LICENSE-MIT and LICENSE-APACHE files for details.
Dependencies
~96–445KB
~11K SLoC