#framework #macro #proc-macro #acton #applications #reactive #messages

macro acton-macro

Acton Macro provides procedural macros that simplify the creation of messages and agents in the Acton framework, enabling more concise and expressive code

7 releases (stable)

3.0.0-beta.1 Dec 2, 2024
1.1.4 Nov 30, 2024
1.0.0-beta.1 Oct 3, 2024

#1750 in Procedural macros

Download history 133/week @ 2024-09-28 26/week @ 2024-10-05 13/week @ 2024-10-12 2/week @ 2024-10-19 9/week @ 2024-11-02 7/week @ 2024-11-16 2/week @ 2024-11-23 364/week @ 2024-11-30 18/week @ 2024-12-07

391 downloads per month
Used in acton-reactive

Apache-2.0 OR MIT

7KB

Acton Macro

acton-macro provides procedural macros that simplify the creation of messages and agents 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_message macro helps you quickly define messages that are compatible with the Acton framework.
  • Agent Macro Support: Procedural macros allow for cleaner and more expressive agent definitions.
  • Integration with Acton: acton-macro is designed to be used with the Acton Reactive Application Framework, a Rust framework for building reactive and scalable applications using an agent-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 agents in the Acton framework. or

#[acton_actor]
struct MyActor;

This macro automatically generates the necessary traits for structs to be used as agents 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

~245–690KB
~17K SLoC