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

#451 in Parser implementations

Download history 96/week @ 2022-11-26 96/week @ 2022-12-03 102/week @ 2022-12-10 139/week @ 2022-12-17 24/week @ 2022-12-24 50/week @ 2022-12-31 197/week @ 2023-01-07 117/week @ 2023-01-14 381/week @ 2023-01-21 150/week @ 2023-01-28 160/week @ 2023-02-04 171/week @ 2023-02-11 157/week @ 2023-02-18 177/week @ 2023-02-25 151/week @ 2023-03-04 94/week @ 2023-03-11

616 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

~215KB