eventcore-macros 1.0.1

Procedural macros for EventCore event sourcing library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// trybuild pass fixture: proving #[derive(Command)] handles two #[stream] fields.
// Exercised via tests/trybuild.rs.
extern crate eventcore;

use eventcore::{Command, StreamId};

#[derive(Command)]
struct TransferFundsCommand {
    #[stream]
    from: StreamId,

    #[stream]
    to: StreamId,
}

fn main() {
    // Intentionally left empty; macro expansion failure is asserted via trybuild.
}