5 stable releases

2.0.1 Jun 13, 2022
2.0.0 Jun 11, 2022
1.0.2 Jul 7, 2021
1.0.1 Jul 6, 2021

#310 in Parser implementations

Download history 118/week @ 2022-06-11 79/week @ 2022-06-18 77/week @ 2022-06-25 113/week @ 2022-07-02 80/week @ 2022-07-09 151/week @ 2022-07-16 113/week @ 2022-07-23 62/week @ 2022-07-30 130/week @ 2022-08-06 165/week @ 2022-08-13 132/week @ 2022-08-20 98/week @ 2022-08-27 113/week @ 2022-09-03 78/week @ 2022-09-10 47/week @ 2022-09-17 129/week @ 2022-09-24

375 downloads per month

BSL-1.0 license

35KB
725 lines

cronchik

Crates.io Documentation Build

Cron expression parser.

Syntax

# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

Features

  • serde - Enables serialization/deserialization.
  • time - Enables schedule calculation using time crate.

lib.rs:

Simple cron expression parser.

Syntax

<minutes> <hours> <days of month> <months> <days of week>

  • minute is integer in range 0..=59;
  • hour is integer in range 0..=23;
  • day of month is integer in range 1..=31;
  • month is integer in range 1..=12 or textual representation like JAN or DEC;
  • day of week is integer in range 0..=6 or textual representation like SUN or SAT;

Features

  • serde - Enables serialization/deserialization.
  • time - Enables schedule calculation using time03 crate.

Dependencies

~200KB