utc-cron-expr 11.1.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
  • Coverage
  • 100%
    13 out of 13 items documented0 out of 0 items with examples
  • Size
  • Source code size: 33.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 347.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates-dev/ctares
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vshengbro

utc-cron-expr

Zero-Dependency 5/6-Field Cron Parser, O(1) Bitmask Matcher & Next-Occurrence Engine

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Provides a zero-dependency 5-field and 6-field POSIX/Quartz cron expression parser (@hourly, @daily, @weekly, @monthly, @yearly, month/weekday names, steps, ranges, lists), O(1) bitmask matching, and fast leap-year-aware civil-calendar next-occurrence lookup.

This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.

Installation & Quick Start

cargo add utc-cron-expr
use utc_cron_expr::*;

let sched: CronSchedule = CronSchedule::parse("*/15 * * * MON-FRI").expect("valid cron");
let next: Option<i64> = sched.next_after(1_700_000_000);
assert!(next.is_some());

License

This project is licensed under the MIT License. See the LICENSE file for details.