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
40
41
42
43
44
45
46
47
48
49
//! chronicle-core: a single-threaded, deterministic limit order book and
//! matching engine with zero steady-state heap allocation.
//!
//! The design contract is `docs/ARCHITECTURE.md` in the repository. The
//! short version:
//!
//! - Orders live in a fixed-capacity struct-of-arrays arena and are
//! named only by [`OrderId`]. Raw slot handles never leave this crate.
//! - Prices sit on a bounded tick grid. Active levels are tracked by
//! hierarchical bitmaps, so best bid and best ask cost a few word
//! reads, independent of how many levels are live.
//! - An open-addressed table with backward-shift deletion maps
//! [`OrderId`] to arena slots at a load factor of at most 50 percent.
//! - Every mutating command validates and preflights before it mutates,
//! so every rejection is atomic. Execution events are written into a
//! caller-owned buffer; a buffer that is too small is a typed error
//! returned before any state changes.
//!
//! This crate is strictly std-only, forbids unsafe code, reads no clock,
//! and uses no process-seeded randomness. It is the deterministic core
//! that `chronicle-wal` persists and `chronicle-cli` drives.
pub
pub
pub
pub
pub
pub
pub
pub
pub
pub use ;
pub use BookConfig;
pub use BookError;
pub use ;
pub use ;
;