Skip to content

build(deps): update lru dependency version to 0.17.0#1145

Merged
0x676e67 merged 1 commit intomainfrom
deps
Apr 16, 2026
Merged

build(deps): update lru dependency version to 0.17.0#1145
0x676e67 merged 1 commit intomainfrom
deps

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

@0x676e67 0x676e67 commented Apr 16, 2026

Summary by CodeRabbit

  • Chores
    • Updated dependency to version 0.17.0.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 16, 2026

📝 Walkthrough

Walkthrough

The lru dependency version in Cargo.toml has been bumped from 0.16.3 to 0.17.0. This is a single-line configuration update with no changes to feature flags, exported APIs, or public entity declarations.

Changes

Cohort / File(s) Summary
Dependency Update
Cargo.toml
Bumped lru crate dependency from version 0.16.3 to 0.17.0.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop and a skip, a version so new,
The lru cache brightens our cache-y view,
From sixteen to seventeen, we gently ascend,
No breaking changes, just updates that blend! ✨

🚥 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 accurately describes the main change: updating the lru dependency version to 0.17.0, which is precisely what the changeset accomplishes.
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 deps

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 98: The Cargo.toml currently pins the dependency lru = "0.17.0" which
does not exist; update the version string for the lru dependency to "0.16.3" (or
the confirmed correct published version) so cargo can resolve it. Locate the lru
entry in Cargo.toml (the dependency key "lru") and replace the version value;
run cargo update / cargo build to verify resolution succeeds.
🪄 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: 281fed21-0c17-46da-acdc-8a051680b4be

📥 Commits

Reviewing files that changed from the base of the PR and between a28d0f8 and ccad23d.

📒 Files selected for processing (1)
  • Cargo.toml

Comment thread Cargo.toml
socket2 = { version = "0.6.3", features = ["all"] }
ipnet = "2.12.0"
lru = "0.16.3"
lru = "0.17.0"
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

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Check whether Cargo.lock is tracked and resolved to lru 0.17.0 =="
if fd '^Cargo\.lock$' -HI . >/dev/null; then
  LOCKFILE="$(fd '^Cargo\.lock$' -HI . | head -n1)"
  echo "Found lockfile: ${LOCKFILE}"
  rg -n -C2 '^name = "lru"$|^version = "0\.17\.0"$' "${LOCKFILE}" || true
else
  echo "No Cargo.lock found in repository root scan (may be intentional for a library crate)."
fi

echo
echo "== Enumerate LruCache usage sites affected by this bump =="
rg -n -C2 --type rust 'use lru::LruCache|LruCache::(new|unbounded)|\.pop_lru\(|\.put\(|\.len\('

echo
echo "== Pull upstream changelog notes for v0.17.0 =="
curl -fsSL https://docs.rs/crate/lru/0.17.0/source/CHANGELOG.md | rg -n -C1 'v0\.17\.0|MSRV|hashbrown'

Repository: 0x676e67/wreq

Length of output: 50429


🌐 Web query:

lru crate 0.17.0 release notes changelog breaking changes

💡 Result:

The lru Rust crate (github.com/jeromefroe/lru-rs) does not have a 0.17.0 release as of 2026-04-16. The latest version is 0.16.3 (released 2026-01-07). No release notes, changelog, or breaking changes exist for 0.17.0 because it has not been released. The full changelog up to 0.16.3 is available in the repository's CHANGELOG.md. Recent versions (all minor/patch, typically non-breaking unless noted): - v0.16.3 (2026-01-07): Fix Stacked Borrows violation in IterMut. - v0.16.2 (2025-10-14): Upgrade hashbrown to 0.16.0. - v0.16.1 (2025-09-08): Fix Clone for unbounded cache. - v0.16.0 (2025-07-02): Implement Clone for caches with custom hashers. - v0.15.0 (2025-06-26): Return bool from promote/demote to indicate if key found (potential breaking change in return type). Older versions with explicit breaking changes: - v0.14.0 (2025-04-12): Use NonZeroUsize::MAX instead of unwrap, MSRV 1.70.0. - v0.8.0 (2022-09-11): Use NonZeroUsize for capacity (breaking). - v0.2.0 (2019-09-27): Accidental breaking change fix. crates.io confirms latest is 0.16.3 with no 0.17.0 published. lib.rs versions list also tops at 0.16.3.

Citations:


🏁 Script executed:

#!/bin/bash
# Check if Cargo.lock exists and get its full content for lru version
if [ -f Cargo.lock ]; then
  echo "=== Checking Cargo.lock for lru version ==="
  grep -A 3 '^name = "lru"$' Cargo.lock | head -10
else
  echo "No Cargo.lock file in repository root"
fi

echo
echo "=== Verify LruCache usage in code ==="
# Find the actual method signatures used with LruCache
rg -n 'LruCache::(new|unbounded)' src/ --type rust -A 1 -B 1

Repository: 0x676e67/wreq

Length of output: 634


🏁 Script executed:

#!/bin/bash
# Verify exact content of Cargo.toml line 98
sed -n '98p' Cargo.toml

Repository: 0x676e67/wreq

Length of output: 71


Revert lru version to 0.16.3—version 0.17.0 does not exist on crates.io.

Line 98 specifies lru = "0.17.0", but the lru crate's latest published version is 0.16.3 (released 2026-01-07). This will cause a build failure during dependency resolution. Update to lru = "0.16.3" or confirm the correct target version before merging.

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

In `@Cargo.toml` at line 98, The Cargo.toml currently pins the dependency lru =
"0.17.0" which does not exist; update the version string for the lru dependency
to "0.16.3" (or the confirmed correct published version) so cargo can resolve
it. Locate the lru entry in Cargo.toml (the dependency key "lru") and replace
the version value; run cargo update / cargo build to verify resolution succeeds.

@0x676e67 0x676e67 merged commit 805673e into main Apr 16, 2026
46 of 47 checks passed
@0x676e67 0x676e67 deleted the deps branch April 16, 2026 03:29
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.

1 participant