rakka-macros 0.2.0

Procedural macros for rakka — #[actor_msg], #[derive(Actor)], #[receive].
Documentation

Procedural macros for rakka. Ergonomics over rakka-core.

Exposes:

  • #[actor_msg] attribute — adds Debug derive and rakka-friendly conventions to a message enum.
  • #[derive(Actor)] with #[msg(MyMsgEnum)] — generates a thin impl Actor that delegates to the struct's handle_msg method, removing the async_trait boilerplate users would otherwise repeat.
  • #[derive(Receive)] with #[msg(MyMsgEnum)] — generates a handle method that dispatches enum variants to on_<variant> methods on the actor (Phase 1.E of docs/full-port-plan.md).
  • props! macro — terse Props::create(|| ExprThatBuildsAnActor).