Skip to main content

arc_core/
lib.rs

1//! # Arc Core
2//!
3//! Event sourcing primitives for the arc framework.
4//! This crate is headless and contains no web dependencies.
5//!
6//! ## Features
7//!
8//! - Event store trait definitions
9//! - Aggregate trait definitions
10//! - Command and event bus traits
11//! - Projector, projection, and projection engine traits
12//! - Read model store trait
13//!
14
15// Re-export commonly used types
16pub use serde::{Deserialize, Serialize};
17pub use uuid::Uuid;
18
19// Module structure
20pub mod access_log;
21pub mod aggregate;
22pub mod audit;
23pub mod command_bus;
24pub mod event;
25pub mod event_bus;
26pub mod event_store;
27pub mod integrity;
28pub mod projection;
29pub mod read_model_store;
30pub mod session;
31pub mod snapshot;
32
33#[cfg(test)]
34mod tests {
35    #[test]
36    fn it_works() {
37        assert_eq!(2 + 2, 4);
38    }
39}