From b137c34e9616fc373a506db396b11c5823a4fe67 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 18 Oct 2022 22:11:27 +0200 Subject: [PATCH 01/14] Fix lint casting to the same type is unnecessary --- src/sidekiq/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sidekiq/mod.rs b/src/sidekiq/mod.rs index c2b0734..187a744 100644 --- a/src/sidekiq/mod.rs +++ b/src/sidekiq/mod.rs @@ -86,7 +86,7 @@ impl Default for JobOpts { let now = SystemTime::now() .duration_since(UNIX_EPOCH) .unwrap() - .as_secs() as u64; + .as_secs(); let mut rng = thread_rng(); let jid: String = (&mut rng) .sample_iter(Alphanumeric) From 8dd40c6c31b49398f0c1b3c917aef0b8fcdf9306 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 18 Oct 2022 22:14:32 +0200 Subject: [PATCH 02/14] README remove r2d2-redis [ci skip] --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index e89cfb2..e12f34f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ format](https://github.com/mperham/sidekiq/wiki/Job-Format) as reference. * [rand](https://github.com/rust-random/rand) * [redis](https://github.com/mitsuhiko/redis-rs) -* [r2d2-redis](https://github.com/sorccu/r2d2-redis) * [serde_json](https://github.com/serde-rs/json) ## Installation From 6922e6e6ca3821f4f35d91444979b1713c3f7fbf Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 18 Oct 2022 22:16:32 +0200 Subject: [PATCH 03/14] Fix lint casting to the same type is unnecessary --- tests/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib.rs b/tests/lib.rs index 59e5b9a..8d664e1 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -38,7 +38,7 @@ fn time_ok(time: u64) -> bool { let now = SystemTime::now() .duration_since(UNIX_EPOCH) .unwrap() - .as_secs() as u64; + .as_secs(); now >= time } From 8a24a4c33b7dad9cfaddc5a34ab7cf22b0a501f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Oct 2022 20:13:31 +0000 Subject: [PATCH 04/14] Update redis requirement from 0.21 to 0.22 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/0.21.0...redis-0.22.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e2d554d..514f05a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.21", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.22", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From 12b96621d9f8ad94d9aeefbe29a1f2e1e052d1b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Apr 2023 00:57:38 +0000 Subject: [PATCH 05/14] Update redis requirement from 0.22 to 0.23 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.22.0...redis-0.23.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 514f05a..a11973b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.22", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.23", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From 52782bb7619f78341b144e87b7d0a3ac6bad7ade Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 01:02:14 +0000 Subject: [PATCH 06/14] Update redis requirement from 0.23 to 0.25 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.23.0...redis-0.25.4) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a11973b..fb06980 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.23", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.25", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From cc4e8c892e238ac70d5886900beaa91fb0a94589 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 00:13:40 +0000 Subject: [PATCH 07/14] Update redis requirement from 0.25 to 0.26 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.25.0...redis-0.26.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fb06980..b0db7fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.25", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.26", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From b77549e14c0630834c31a5d97d72066cca54a0d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:20:41 +0000 Subject: [PATCH 08/14] Update redis requirement from 0.26 to 0.27 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.26.0...redis-0.27.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b0db7fa..c3c2f32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.26", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.27", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From f4c152f9e05ed512ecbeccd9065cd9132e912844 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 00:05:22 +0000 Subject: [PATCH 09/14] Update redis requirement from 0.27 to 0.29 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.27.0...redis-0.29.0) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c3c2f32..5b0797a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.8" serde = "1.0" serde_json = "1.0" -redis = { version = "0.27", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.29", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From 68c1fe594bc74b698e9e2546781ae817ec5e2d41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:19:26 +0000 Subject: [PATCH 10/14] Update rand requirement from 0.8 to 0.9 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5b0797a..8801df4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ travis-ci = { repository = "spk/rust-sidekiq" } [dependencies] futures = "0.3" -rand = "0.8" +rand = "0.9" serde = "1.0" serde_json = "1.0" redis = { version = "0.29", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } From be6150a6434629d9b096478f0d7d914f0c1d56e4 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 8 Apr 2025 17:27:07 +0000 Subject: [PATCH 11/14] fix: update to rand-0.9 --- src/sidekiq/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sidekiq/mod.rs b/src/sidekiq/mod.rs index 187a744..32ef064 100644 --- a/src/sidekiq/mod.rs +++ b/src/sidekiq/mod.rs @@ -4,8 +4,8 @@ use std::fmt; use std::time::{SystemTime, UNIX_EPOCH}; use crate::Value; -use rand::distributions::Alphanumeric; -use rand::{thread_rng, Rng}; +use rand::distr::Alphanumeric; +use rand::{rng, Rng}; use serde::ser::SerializeStruct; use serde::{Serialize, Serializer}; @@ -87,7 +87,7 @@ impl Default for JobOpts { .duration_since(UNIX_EPOCH) .unwrap() .as_secs(); - let mut rng = thread_rng(); + let mut rng = rng(); let jid: String = (&mut rng) .sample_iter(Alphanumeric) .take(24) From 1df558853ddccfb3237d3b80da719b35af43c39f Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 8 Apr 2025 17:33:27 +0000 Subject: [PATCH 12/14] Bump to 0.13.0 --- CHANGELOG.md | 14 ++++++++++++++ Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eeb59d8..6124b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,18 @@ +0.13.0 / 2025-04-08 +=================== + + * fix: update to rand-0.9 + * Update rand requirement from 0.8 to 0.9 + * Update redis requirement from 0.27 to 0.29 + * Update redis requirement from 0.26 to 0.27 + * Update redis requirement from 0.25 to 0.26 + * Update redis requirement from 0.23 to 0.25 + * Update redis requirement from 0.22 to 0.23 + * Update redis requirement from 0.21 to 0.22 + * Fix lint casting to the same type is unnecessary + * README remove r2d2-redis + 0.12.0 / 2022-09-23 =================== diff --git a/Cargo.toml b/Cargo.toml index 8801df4..77f4616 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sidekiq" # When updating version, also modify html_root_url in the src/lib.rs file. -version = "0.12.0" +version = "0.13.0" authors = ["Laurent Arnoud "] description = "Rust Sidekiq Client" repository = "https://github.com/spk/rust-sidekiq.git" diff --git a/src/lib.rs b/src/lib.rs index 19711a7..11ddb2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ //! //! `REDIS_URL`="redis://127.0.0.1/" //! -#![doc(html_root_url = "https://docs.rs/sidekiq/0.12.0")] +#![doc(html_root_url = "https://docs.rs/sidekiq/0.13.0")] #![deny(warnings)] #![crate_name = "sidekiq"] From 55a6ff74bc9b6a264fe88af53c9bdd6e3d6fab24 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 00:06:42 +0000 Subject: [PATCH 13/14] Update redis requirement from 0.29 to 0.30 Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version. - [Release notes](https://github.com/redis-rs/redis-rs/releases) - [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.29.0...redis-0.30.0) --- updated-dependencies: - dependency-name: redis dependency-version: 0.30.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 77f4616..aa8b8b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ futures = "0.3" rand = "0.9" serde = "1.0" serde_json = "1.0" -redis = { version = "0.29", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } +redis = { version = "0.30", features = ["connection-manager", "async-std-comp", "async-std-tls-comp"] } time = "0.3" From 72bebdd7ee73621e8a3298e544daed3abc5b224f Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 23 Apr 2025 14:20:10 +0000 Subject: [PATCH 14/14] ci: update actions version --- .github/workflows/workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6b08223..396141b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,7 +15,7 @@ jobs: name: Rustfmt [Formatter] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -116,19 +116,19 @@ jobs: # Cache files between builds - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.cargo/git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo build - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: target key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}