diff --git a/Cargo.toml b/Cargo.toml index 8f7efcb..a1d0ad4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,20 +1,16 @@ [package] name = "job_scheduler_ng" -version = "2.0.3" +version = "2.0.4" authors = ["Mathijs van Veluw "] description = "A simple cron-like job scheduling library for Rust (Updated since 2022)." - documentation = "https://docs.rs/job_scheduler_ng/" repository = "https://github.com/BlackDex/job_scheduler" - -license = "MIT/Apache-2.0" - readme = "README.md" +license = "MIT OR Apache-2.0" keywords = ["cron", "crontab", "scheduler", "job"] - categories = ["date-and-time"] - edition = "2021" +rust-version = "1.56.1" # Examples need v1.58 to be able to run. [dependencies] cron = "0.12.0" @@ -22,4 +18,4 @@ chrono = { version = "~0.4.20", default-features = false, features = ["clock"] } uuid = { version = "1", features = ["v4"] } [dev-dependencies] -tokio = { version = ">=1.23", features = ["macros", "time", "rt-multi-thread"] } +tokio = { version = ">=1.25.0", features = ["macros", "time", "rt-multi-thread"] } diff --git a/README.md b/README.md index 125dc45..3ac9ed6 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,15 @@ This is a fork which i try to maintain and maybe even improve where needed. ## Updates +**2023-02-01 (v2.0.4):** + - Validated uuid v1.3.0 works + - Used miri to check examples + Added an `std::process::exit(0);` to produce a clean exit. + - Set MSRV to v1.56.1 + - Updated dev dependency of tokio to v1.25.0 or higher + **2022-12-10 (v2.0.3):** - - Don't require Sync trait for job function (PR #1 - Thanks @mikel1703) + - Don't require Sync trait for job function (PR [#1](https://github.com/BlackDex/job_scheduler/pull/1) - Thanks @mikel1703) - Added two other examples. One using threading, and one also using MPSC. - Added some clippy checks - Fixed some spelling errors diff --git a/examples/simple_job_mpsc.rs b/examples/simple_job_mpsc.rs index 0fbfc31..e99c0a4 100644 --- a/examples/simple_job_mpsc.rs +++ b/examples/simple_job_mpsc.rs @@ -64,4 +64,5 @@ fn main() { println!("Waiting for {wait_seconds} seconds!"); std::thread::sleep(Duration::from_secs(wait_seconds)); println!("Finished. Goodby!"); + std::process::exit(0); } diff --git a/examples/simple_job_thread.rs b/examples/simple_job_thread.rs index cb9d0ec..2dfaa36 100644 --- a/examples/simple_job_thread.rs +++ b/examples/simple_job_thread.rs @@ -30,4 +30,5 @@ fn main() { println!("Waiting for {wait_seconds} seconds!"); std::thread::sleep(Duration::from_secs(wait_seconds)); println!("Finished. Goodby!"); + std::process::exit(0); } diff --git a/examples/simple_job_tokio.rs b/examples/simple_job_tokio.rs index dcd4668..3c338f2 100644 --- a/examples/simple_job_tokio.rs +++ b/examples/simple_job_tokio.rs @@ -10,6 +10,7 @@ async fn main() { println!("Waiting for {wait_seconds} seconds!"); tokio::time::sleep(Duration::from_secs(wait_seconds)).await; println!("Finished. Goodby!"); + std::process::exit(0); } async fn init_scheduler() {