2 releases

0.1.1 Mar 11, 2023
0.1.0 Mar 10, 2023

#211 in Internationalization (i18n)

Download history 12/week @ 2024-02-19 52/week @ 2024-02-26 23/week @ 2024-03-04 23/week @ 2024-03-11 2/week @ 2024-03-18 5/week @ 2024-03-25 34/week @ 2024-04-01 8/week @ 2024-04-08 13/week @ 2024-04-22

56 downloads per month

Apache-2.0

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

~7–17MB
~211K SLoC