mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #376] [MERGED] chore(deps): deduplicate crate versions in the dependency graph #389
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/376
Author: @yingdi-shan
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @yingdi-shan
Base:
main← Head:chore/dedup-crate-versions📝 Commits (1)
a9bfb85chore(deps): deduplicate crate versions in the dependency graph📊 Changes
3 files changed (+101 additions, -235 deletions)
View changed files
📝
Cargo.lock(+99 -233)📝
Cargo.toml(+1 -1)📝
crates/test-support/Cargo.toml(+1 -1)📄 Description
What
Remove crate versions that were duplicated because of our own manifests:
agentenvusesnix0.30 (was 0.31), matching the storage crates andrtnetlink.agentenv-test-supportdisables the legacyrustlsdefault feature onaws-sdk-s3and keepssigv4a,default-https-clientandrt-tokio.docker_credential1.3.2 → 1.4.0 inCargo.lock.Why
Each duplicate adds compile time and binary size. These three duplicates came from our own manifests, so we can remove them without upstream changes. The number of crates resolved at more than one version drops from 62 to 53 (
cargo tree --workspace -e normal,build,dev -d).Removed duplicates:
nix0.31,hyper0.14,hyper-rustls0.24,h20.3,rustls0.21,rustls-webpki0.101,tokio-rustls0.24,socket20.5,base640.21.Related issue
None.
Scope and non-goals
Manifest and lockfile only; no Rust source changes. The remaining duplicates come from inside third-party crates and are out of scope:
reqwest0.12 andrand0.8 come fromopendal0.55. Upgrading to 0.59 would fix them but changes the API (follow-up).netlink-packet-routeandthiserror1 come fromrtnetlink0.20.rtnetlink0.23 uses 0.33, which still wouldn't matchiroh's 0.31.sha2/digest0.11 and other RustCrypto crates come fromiroh.which4 andbindgen0.69 come from the pinnedlibublk-rs-syscommit.tracing-log0.1 comes fromtracing-bunyan-formatterandphf0.11 fromtls-parser. Both are already at their latest releases.Moving the storage crates to
nix0.31 wouldn't have removed the duplicate, becausertnetlink(0.20 and 0.23) requiresnix0.30.Design and behavior changes
None at runtime. The MinIO test helper's S3 client now uses the SDK's default hyper 1 HTTPS client instead of the legacy hyper 0.14/rustls 0.21 connector.
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results:
Skipped checks and reasons:
make fmt: no Rust source changes.make test-unit/make test/make test-ublk: not run here. These need delegated capabilities, and the change has no source edits. Clippy and the unit and MinIO tests above cover compilation and the changed S3 client.make -C services test:services/is unchanged.Risks and reviewer notes
nix0.31 → 0.30 is a downgrade foragentenv. The workspace compiles cleanly with no source changes, so it uses no 0.31-only APIs.aws-sdk-s3feature change only affectscrates/test-support(dev-only).Checklist
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.