Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
@@ -0,0 +1,19 @@
use std::str::FromStr;
fn main() {
let texts = vec![
"every 15 seconds",
"every minute",
"every day at 4:00 pm",
"at 10:00 am",
"Run at midnight on the 1st and 15th of the month",
"on Sunday at 12:00",
];
for text in texts {
match english_to_cron::Cron::from_str(text) {
Ok(res) => println!("{text}: {res}"),
Err(e) => eprintln!("Error parsing '{text}': {e}"),
}
}
}
+15
View File
@@ -0,0 +1,15 @@
fn main() {
let texts = vec![
"every 15 seconds",
"every minute",
"every day at 4:00 pm",
"at 10:00 am",
"Run at midnight on the 1st and 15th of the month",
"on Sunday at 12:00",
];
for text in texts {
let res = english_to_cron::str_cron_syntax(text);
println!("{text}: {res:#?}");
}
}