marathon-core 0.1.3

Marathon's rules: sessions, timers, triggers and time parsing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Platform-independent logic for Marathon: what a keep-awake session is,
//! when it ends, how durations are written, and the IPC protocol.
//!
//! Nothing here touches macOS, so it all tests on any platform.

pub mod ai;
mod duration;
mod keeper;
pub mod protocol;
pub mod rules;

pub use duration::{ParseError, Until, format_clock, format_remaining, format_time};
pub use jiff::{Timestamp, tz::TimeZone};
pub use keeper::{Keeper, Mode, RuleHold, Session, Snapshot};