atomr-macros 0.9.2

Procedural macros for atomr — `#[derive(Actor)]`, `props!`, `#[derive(Receive)]`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use atomr_macros::actor_msg;

#[actor_msg]
#[allow(dead_code)]
enum MyMsg {
    A,
    B(u32),
}

#[test]
fn attribute_adds_debug() {
    let v = MyMsg::B(7);
    let s = format!("{:?}", v);
    assert!(s.contains("B(7)"));
}