2 releases
0.1.1 | Mar 11, 2023 |
---|---|
0.1.0 | Mar 10, 2023 |
#230 in Internationalization (i18n)
46KB
944 lines
cron-descriptor-rust
A Rust library that converts cron expressions into human-readable strings. Translated from the Java version at https://github.com/grahamar/cron-parser Original Project in C#, on which the Java version is based: https://github.com/bradymholt/cron-expression-descriptor
i18n
Only English and Spanish are available right now, but translating from the Java properties files to YAML in locales
is straightforward.
Usage
See tests/tests_*.rs
. E.g.
use cron_descriptor::cronparser::cron_expression_descriptor;
assert_eq!("Every 45 seconds", cron_expression_descriptor::get_description_cron("*/45 * * * * *"));
Dependencies
~8–18MB
~228K SLoC