1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # cqrs-core
//!
//! `cqrs-core` defines the core types for the CQRS aggregate system

#![warn(unused_import_braces, unused_imports, unused_qualifications)]
#![deny(
    missing_debug_implementations,
    missing_copy_implementations,
    trivial_casts,
    trivial_numeric_casts,
    unsafe_code,
    unused_must_use
)]
#![warn(missing_docs)]

#[cfg(test)]
extern crate void;

mod aggregate;
pub mod reactor;
mod store;
mod types;

#[doc(inline)]
pub use crate::aggregate::{
    Aggregate, AggregateCommand, AggregateEvent, AggregateId, CommandError, DeserializableEvent,
    Event, Events, ProducedEvent, ProducedEvents, SerializableEvent,
};
#[doc(inline)]
pub use crate::store::{
    AlwaysSnapshot, EventSink, EventSource, NeverSnapshot, SnapshotSink, SnapshotSource,
    SnapshotStrategy,
};
#[doc(inline)]
pub use crate::types::{
    BorrowedRawEvent, CqrsError, EventNumber, Precondition, RawEvent, Since,
    SnapshotRecommendation, Version, VersionedAggregate, VersionedEvent,
    VersionedEventWithMetadata,
};