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
<div align="center">

<img src="https://devhub.vip/pages/docs/img/logo.png" alt="utc-cron-expr logo" height="120">

# utc-cron-expr

**Zero-Dependency 5/6-Field UTC Cron Expression Parser, Matcher & Scheduler**

[![Crates.io Version](https://flat.badgen.net/crates/v/utc-cron-expr)](https://crates.io/crates/utc-cron-expr)
[![Docs.rs](https://img.shields.io/docsrs/utc-cron-expr?style=flat-square)](https://docs.rs/utc-cron-expr)
[![CI Status](https://img.shields.io/github/actions/workflow/status/crates-dev/ctares/rust.yml?branch=master&style=flat-square&label=CI)](https://github.com/crates-dev/ctares/actions/workflows/rust.yml)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../LICENSE)

[Workspace Overview](../README.md) ยท [API Docs](https://docs.rs/utc-cron-expr/latest/)

</div>

---

## Overview

`utc-cron-expr` parses standard 5-field, 6-field (with seconds), and `@alias` cron expressions into compact bitmasks with O(1) matching and fast Hinnant civil-calendar `next_after` UTC scheduling.

## Installation

```sh
cargo add utc-cron-expr
```

## Usage

```rust
use utc_cron_expr::{CronSchedule, UtcDateTime, days_from_civil};

let schedule = CronSchedule::parse("0 9 * * MON-FRI").unwrap();
let start = days_from_civil(2025, 1, 1) * 86_400;
let next = schedule.next_after(start).unwrap();
let formatted = format!("{}", UtcDateTime::from_unix_secs(next));
assert!(!formatted.is_empty());
```

## Verification

```sh
cargo run -p crate-cli -- fmt --check
cargo clippy -p utc-cron-expr --all-features --all-targets -- -D warnings
cargo test -p utc-cron-expr --all-features
```

## License

This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).