Skip to content

Commit

Permalink
Some checks and small updates
Browse files Browse the repository at this point in the history
 - 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
  • Loading branch information
BlackDex committed Feb 1, 2023
1 parent 687af51 commit 9745e4c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
[package]
name = "job_scheduler_ng"
version = "2.0.3"
version = "2.0.4"
authors = ["Mathijs van Veluw <[email protected]>"]
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"
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"] }
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/simple_job_mpsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
1 change: 1 addition & 0 deletions examples/simple_job_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
1 change: 1 addition & 0 deletions examples/simple_job_tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9745e4c

Please sign in to comment.