utc-cron-expr 11.2.0

Zero-dependency 5-field and 6-field POSIX/Quartz cron expression parser, O(1) bitmask matcher, and fast civil-calendar next-occurrence calculator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Error returned when parsing an invalid cron expression.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum CronError {
    /// Expression did not contain 5 or 6 fields (and was not a known macro alias).
    InvalidFieldCount,
    /// Field token could not be parsed as `*`, value, range, or step.
    InvalidFieldSyntax,
    /// Numeric value fell outside the field's valid bounds.
    ValueOutOfRange,
    /// Step divisor was zero or unparseable.
    InvalidStep,
}