Skip to main content

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;
7pub mod command;
8mod duration;
9mod keeper;
10pub mod protocol;
11pub mod rules;
12pub mod update;
13
14pub use duration::{ParseError, Until, format_clock, format_remaining, format_time};
15pub use jiff::{Timestamp, tz::TimeZone};
16pub use keeper::{Keeper, Mode, RuleHold, Session, Snapshot};