Skip to content

Commit 9745e4c

Browse files
committed
Some checks and small updates
- 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
1 parent 687af51 commit 9745e4c

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

Cargo.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
[package]
22
name = "job_scheduler_ng"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
authors = ["Mathijs van Veluw <black.dex@gmail.com>"]
55
description = "A simple cron-like job scheduling library for Rust (Updated since 2022)."
6-
76
documentation = "https://docs.rs/job_scheduler_ng/"
87
repository = "https://github.com/BlackDex/job_scheduler"
9-
10-
license = "MIT/Apache-2.0"
11-
128
readme = "README.md"
9+
license = "MIT OR Apache-2.0"
1310
keywords = ["cron", "crontab", "scheduler", "job"]
14-
1511
categories = ["date-and-time"]
16-
1712
edition = "2021"
13+
rust-version = "1.56.1" # Examples need v1.58 to be able to run.
1814

1915
[dependencies]
2016
cron = "0.12.0"
2117
chrono = { version = "~0.4.20", default-features = false, features = ["clock"] }
2218
uuid = { version = "1", features = ["v4"] }
2319

2420
[dev-dependencies]
25-
tokio = { version = ">=1.23", features = ["macros", "time", "rt-multi-thread"] }
21+
tokio = { version = ">=1.25.0", features = ["macros", "time", "rt-multi-thread"] }

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ This is a fork which i try to maintain and maybe even improve where needed.
99

1010
## Updates
1111

12+
**2023-02-01 (v2.0.4):**
13+
- Validated uuid v1.3.0 works
14+
- Used miri to check examples
15+
Added an `std::process::exit(0);` to produce a clean exit.
16+
- Set MSRV to v1.56.1
17+
- Updated dev dependency of tokio to v1.25.0 or higher
18+
1219
**2022-12-10 (v2.0.3):**
13-
- Don't require Sync trait for job function (PR #1 - Thanks @mikel1703)
20+
- Don't require Sync trait for job function (PR [#1](https://github.com/BlackDex/job_scheduler/pull/1) - Thanks @mikel1703)
1421
- Added two other examples. One using threading, and one also using MPSC.
1522
- Added some clippy checks
1623
- Fixed some spelling errors

examples/simple_job_mpsc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ fn main() {
6464
println!("Waiting for {wait_seconds} seconds!");
6565
std::thread::sleep(Duration::from_secs(wait_seconds));
6666
println!("Finished. Goodby!");
67+
std::process::exit(0);
6768
}

examples/simple_job_thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ fn main() {
3030
println!("Waiting for {wait_seconds} seconds!");
3131
std::thread::sleep(Duration::from_secs(wait_seconds));
3232
println!("Finished. Goodby!");
33+
std::process::exit(0);
3334
}

examples/simple_job_tokio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ async fn main() {
1010
println!("Waiting for {wait_seconds} seconds!");
1111
tokio::time::sleep(Duration::from_secs(wait_seconds)).await;
1212
println!("Finished. Goodby!");
13+
std::process::exit(0);
1314
}
1415

1516
async fn init_scheduler() {

0 commit comments

Comments
 (0)