#![doc = include_str!("../README.md")]
#![cfg_attr(not(test), warn(clippy::unwrap_used, clippy::expect_used))]
mod allocator;
mod epoch;
mod lease;
mod peer;
pub mod seq;
mod timestamp;
pub mod docs;
pub use allocator::{Allocator, CommitOutcome, CoreError, IgnoreReason, PhysicalMs, WindowGrant};
pub use epoch::Epoch;
pub use lease::{
AcquireDecision, DEFAULT_LEASE_TTL_CEILING_MS, DEFAULT_LEASE_TTL_FLOOR_MS, LeaseError,
LeaseRecord, LeaseTable, MAX_LEASE_HOLDER_LEN, validate_lease_request,
};
pub use peer::{PeerEndpoint, PeerEndpointError, TsoPeer};
pub use seq::{
DEFAULT_MAX_SEQ_BATCH_KEYS, DEFAULT_MAX_SEQ_COUNT, MAX_SEQ_KEY_LEN, SeqAllocator, SeqGrant,
SeqKey,
};
pub use timestamp::{LOGICAL_MAX, PHYSICAL_MS_MAX, Timestamp, TimestampError};