Skip to content

Update Rust crate redis to 0.32.0#358

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/redis-0.x
Open

Update Rust crate redis to 0.32.0#358
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/redis-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 22, 2025

This PR contains the following updates:

Package Type Update Change
redis dependencies minor 0.29.00.32.0

Release Notes

redis-rs/redis-rs (redis)

v0.32.7

Compare Source

What's Changed

v0.32.6

Compare Source

0.32.6 (2025-09-26)
Changes

v0.32.5

Compare Source

What's Changed

Changes & Bug fixes
Documentation & CI improvements

v0.32.4

Compare Source

What's Changed

Changes & Bug fixes

New Contributors

Full Changelog: redis-rs/redis-rs@redis-0.32.3...redis-0.32.4

v0.32.3

Compare Source

0.32.3 (2025-06-30)
Changes & Bug fixes
Documentation & CI improvements

New Contributors

Full Changelog: redis-rs/redis-rs@redis-0.32.2...redis-0.32.3

v0.32.2

Compare Source

Changes & Bug fixes

v0.32.1

Compare Source

What's Changed

New Contributors

Full Changelog: redis-rs/redis-rs@redis-0.32.0...redis-0.32.1

v0.32.0

Compare Source

Changes & Bug fixes

v0.31.0

Compare Source

Changes & Bug fixes

v0.30.0

Compare Source

Changes & Bug fixes
Documentation & CI improvements

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by CodeRabbit

  • Chores
    • Updated Redis library dependency to a newer version for improved compatibility and stability.

@renovate renovate Bot enabled auto-merge (squash) April 22, 2025 21:39
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 2306ac6 to 4ed81f2 Compare May 5, 2025 06:56
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 833d111 to 1294ce1 Compare May 9, 2025 11:47
@renovate renovate Bot changed the title Update Rust crate redis to 0.30.0 Update Rust crate redis to 0.31.0 May 9, 2025
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 95aee90 to a054f76 Compare May 12, 2025 11:19
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 3 times, most recently from a9aae2e to f46ee27 Compare May 26, 2025 05:44
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 4 times, most recently from 2dc4c18 to 76ef18a Compare June 2, 2025 18:42
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from 76ef18a to 6bbf683 Compare June 6, 2025 22:04
@renovate renovate Bot changed the title Update Rust crate redis to 0.31.0 Update Rust crate redis to 0.32.0 Jun 6, 2025
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 32b6c19 to 20b8874 Compare June 11, 2025 03:04
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from 20b8874 to d617e3a Compare June 16, 2025 06:41
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from d617e3a to b7dce29 Compare June 23, 2025 07:58
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 897fa48 to 5c694e5 Compare July 7, 2025 05:48
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 7fa038b to ce064b7 Compare July 18, 2025 22:33
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 0f6a605 to 7386db9 Compare July 26, 2025 21:06
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from 7386db9 to 65fc60f Compare July 28, 2025 08:40
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 770685c to 3f3754a Compare August 10, 2025 09:11
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 3 times, most recently from 77f2dd5 to 33c8385 Compare September 22, 2025 05:59
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from 33c8385 to b31dd05 Compare September 25, 2025 20:53
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 5 times, most recently from 389f234 to 917cb11 Compare October 14, 2025 20:31
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 5368698 to 2ffb4e8 Compare October 27, 2025 04:51
@renovate renovate Bot force-pushed the renovate/redis-0.x branch from 2ffb4e8 to 76bacf1 Compare November 3, 2025 04:47
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 3 times, most recently from 0aed12b to c060327 Compare November 17, 2025 04:56
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 3fd3f52 to 84b1a61 Compare November 26, 2025 21:59
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 2 times, most recently from 4544646 to 5274908 Compare December 8, 2025 05:40
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 3 times, most recently from ea7d88e to 76e5ab5 Compare December 15, 2025 22:35
@renovate renovate Bot force-pushed the renovate/redis-0.x branch 5 times, most recently from 6d85fc1 to 233e1e7 Compare December 24, 2025 05:41
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 29, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 737ebbfc-7557-4dde-8c37-08b62599d866

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The pull request updates the redis crate dependency from version 0.29.0 to 0.32.0 in the project's Cargo configuration, maintaining the same feature flags and compilation settings.

Changes

Cohort / File(s) Summary
Dependency Version Update
Cargo.toml
Updated redis crate dependency from 0.29.0 to 0.32.0 with feature flags ["tokio-comp", "connection-manager"] and default-features = false unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A whisker-twitch of version cheer,
Redis hops from point-two-nine to three-two gear,
Features stay the same, no worry or fuss,
Just a little spring in the dependency dust! 🌱

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the Redis crate dependency from 0.29.0 to 0.32.0, which is the only modification in this pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/redis-0.x

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Cargo.toml`:
- Line 12: The code still calls Client::get_tokio_connection() which was removed
in redis 0.32.x; update the call in src/main.rs (where get_tokio_connection is
used) to either await client.get_multiplexed_tokio_connection().await for a
multiplexed connection or use client.get_connection_manager().await to get an
auto-reconnecting ConnectionManager (the Cargo.toml already enables the
connection-manager feature); keep using the AsyncCommands::{get, set_ex} APIs
as-is with the new connection type and adjust any type annotations or imports to
use redis::aio::MultiplexedConnection or redis::aio::ConnectionManager
accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d621de04-c46a-45d7-9614-bbdf160c58a5

📥 Commits

Reviewing files that changed from the base of the PR and between 9edf3d1 and 0fc0884.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • Cargo.toml

Comment thread Cargo.toml
actix-web = "4.5.1"
lazy_static = "1.4.0"
redis = { version = "0.29.0", default-features = false, features = ["tokio-comp", "connection-manager"] }
redis = { version = "0.32.0", default-features = false, features = ["tokio-comp", "connection-manager"] }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

For redis crate 0.32.x, is redis::Client::get_tokio_connection()still available/supported? What is the recommended async connection method replacement, and doAsyncCommands::getandset_exremain available withtokio-comp+connection-manager features?

💡 Result:

  • No: in redis 0.32.x (e.g. 0.32.7), redis::Client does not expose get_tokio_connection(); the async client APIs are centered around multiplexed connections and (optionally) the connection manager (see the Client method list: it has get_multiplexed_* + get_connection_manager, but no get_tokio_connection). [1]

  • Recommended async replacement (Tokio):

    • Use a multiplexed async connection:
      • client.get_multiplexed_async_connection().await (runtime-agnostic entrypoint), or the Tokio-specific get_multiplexed_tokio_connection().await. [1]
    • If you want auto-reconnect, use:
      • client.get_connection_manager().await (and enable the connection-manager feature). [2]
  • Do AsyncCommands::get and set_ex still exist / work with tokio-comp + connection-manager?

    • Yes: AsyncCommands in redis 0.32.x still provides get and set_ex. [3]
    • And both MultiplexedConnection and ConnectionManager support AsyncCommands (blanket impl via ConnectionLike + Send + Sync), so you can call con.get(...).await / con.set_ex(...).await on either. [4]

Sources

  1. redis 0.32.7 Client docs (method list includes get_multiplexed_*, get_connection_manager, etc.). (docs.rs)
  2. redis 0.32.7 crate docs on async + recommending ConnectionManager for automatic reconnections. (docs.rs)
  3. redis 0.32.7 AsyncCommands docs showing get and set_ex provided methods. (docs.rs)
  4. redis 0.32.7 MultiplexedConnection / ConnectionManager docs showing AsyncCommands blanket implementations. (docs.rs)

Citations:


🏁 Script executed:

#!/bin/bash
# Read-only scan for potentially impacted redis call sites after the 0.32 upgrade.
rg -n -C3 'get_tokio_connection\s*\(|AsyncCommands|set_ex\s*\(|\bget::<'

Repository: TeamPiped/region-restriction-checker

Length of output: 776


Fix redis 0.32.x breaking change: get_tokio_connection() no longer exists.

The upgrade from redis 0.29.x to 0.32.x introduces a breaking API change. The Client::get_tokio_connection() method used on line 359 of src/main.rs does not exist in 0.32.x. Replace it with either:

  • client.get_multiplexed_tokio_connection().await for a multiplexed connection, or
  • client.get_connection_manager().await for auto-reconnect (requires the connection-manager feature, which is already enabled).

The AsyncCommands::{get, set_ex} methods remain available and compatible with both approaches.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Cargo.toml` at line 12, The code still calls Client::get_tokio_connection()
which was removed in redis 0.32.x; update the call in src/main.rs (where
get_tokio_connection is used) to either await
client.get_multiplexed_tokio_connection().await for a multiplexed connection or
use client.get_connection_manager().await to get an auto-reconnecting
ConnectionManager (the Cargo.toml already enables the connection-manager
feature); keep using the AsyncCommands::{get, set_ex} APIs as-is with the new
connection type and adjust any type annotations or imports to use
redis::aio::MultiplexedConnection or redis::aio::ConnectionManager accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants