marathon_core/lib.rs
1//! Platform-independent logic for Marathon: what a keep-awake session is,
2//! when it ends, how durations are written, and the IPC protocol.
3//!
4//! Nothing here touches macOS, so it all tests on any platform.
5
6pub mod ai;
7mod duration;
8mod keeper;
9pub mod protocol;
10pub mod rules;
11
12pub use duration::{ParseError, Until, format_clock, format_remaining, format_time};
13pub use jiff::{Timestamp, tz::TimeZone};
14pub use keeper::{Keeper, Mode, RuleHold, Session, Snapshot};