Skip to main content

tsoracle_core/
lib.rs

1//! Core algorithm for tsoracle.
2//!
3//! No I/O, no async, no tokio. Runtime-neutral. Property-testable in microseconds.
4
5mod allocator;
6mod clock;
7mod epoch;
8mod timestamp;
9
10pub mod docs;
11
12pub use allocator::{Allocator, CoreError, WindowGrant};
13pub use clock::{Clock, SystemClock};
14pub use epoch::Epoch;
15pub use timestamp::{LOGICAL_MAX, PHYSICAL_MS_MAX, Timestamp, TimestampError};
16
17#[cfg(any(test, feature = "test-clock"))]
18pub use clock::testing;