<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**
[](https://crates.io/crates/utc-cron-expr)
[](https://docs.rs/utc-cron-expr)
[](https://github.com/crates-dev/ctares/actions/workflows/rust.yml)
[](https://www.rust-lang.org)
[](../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).