Registry / utility / clockwork-cron

clockwork-cron

JSON →
library2.0.19rscratesunverified

Parses cron expressions safely within the Solana runtime environment.

# Cargo.toml [dependencies] clockwork-cron = "2.0.19"
INSTALL
IMPORT
SIG · CLOCKWORK-CRON
C
clockwork-cron
utilityrustv2.0.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Schedule
✓ use clockwork_cron::Schedule;

Parse a cron expression into a Schedule.

use clockwork_cron::Schedule; fn main() { let sched = "0 0 * * * *".parse::<Schedule>().unwrap(); println!("Schedule: {:?}", sched); }
Debug
Known issues
gotchaDesigned for Solana's constrained environment; may panic on invalid input.
fix
Always validate cron expressions before parsing.
affects: >=2.0.0
Upgrade
Version history
2.0.19latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
clockwork-cron — cargo add clockwork-cron · libregistry