Skip to content

Update dependencies#460

Draft
LockedThread wants to merge 6 commits into
durch:masterfrom
LockedThread:feat/update-deps
Draft

Update dependencies#460
LockedThread wants to merge 6 commits into
durch:masterfrom
LockedThread:feat/update-deps

Conversation

@LockedThread
Copy link
Copy Markdown

@LockedThread LockedThread commented May 7, 2026

Updated various dependencies. No user-facing breaking changes observed. All tests pass.

While I was at it, I noticed the project did not have an MSRV set. I checked what the MSRV was prior to crate update using cargo-msrv, it was 1.88.0. After the changes, it did not change.

Note:
I opted not to update sysinfo as it would bump the MSRV to 1.95.0 per this commit.


This change is Reviewable

Summary by CodeRabbit

  • Chores
    • Updated minimum Rust version requirement to 1.88.0 across all crates.
    • Upgraded multiple dependencies including quick-xml, hmac, reqwest, sha2, minidom, aws-creds, and aws-region to their latest versions.
    • Adjusted TLS feature configuration for improved compatibility.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR upgrades the rust-s3 workspace to Rust 1.88.0 MSRV. It bumps dependencies including hmac, quick-xml, reqwest, sha2, and minidom across the crates. Source code is updated to use the new KeyInit trait from hmac 0.13. The reqwest TLS feature is changed from rustls-tls to rustls-no-provider.

Changes

Dependency Upgrade and MSRV Specification

Layer / File(s) Summary
MSRV Specification
aws-creds/Cargo.toml, aws-region/Cargo.toml, s3/Cargo.toml
Minimum supported Rust version set to 1.88.0 across all workspace crates.
Dependency Versions and Features
aws-creds/Cargo.toml, s3/Cargo.toml
Dependencies upgraded: quick-xml 0.38→0.39, hmac 0.12→0.13, minidom 0.16→0.18, reqwest 0.12→0.13, sha2 0.10→0.11. Workspace crate versions bumped. Reqwest tokio-rustls-tls feature updated from rustls-tls to rustls-no-provider.
HMAC KeyInit Trait Integration
s3/src/post_policy.rs, s3/src/request/request_trait.rs, s3/src/signing.rs
Import hmac::KeyInit trait across modules to support new_from_slice key initialization in line with hmac 0.13 API.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A version bump hops along,
Rust 1.88 makes cryptographic songs,
hmac traits aligned with care,
KeyInit baked everywhere! 🔐

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Update dependencies' is vague and generic, using non-descriptive phrasing that doesn't convey meaningful information about the specific changes. Consider a more descriptive title such as 'Update Rust dependencies and set MSRV to 1.88.0' to better communicate the nature of the changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@brownian-motion-v0
Copy link
Copy Markdown

Brownian Motion (Brass)

Recommendation: Refactor

Summary: Dependency updates are sound but lack clear justification for MSRV changes.
Risk: Medium · Confidence: 70%

Highlights

  • Good test coverage
  • All tests pass

Unknowns

  • No linked issue
  • Impact of MSRV change on users

Next actions

  • Keep: Updated dependencies
  • Drop: MSRV change if not justified
  • Add: Justification for MSRV decision

Reflection questions

  • What core assumption underpins this PR's approach?
  • How does this change align with the project's longer-term goals?
  • Could there be a simpler way to achieve the primary objective here?

@LockedThread
Copy link
Copy Markdown
Author

Brownian Motion (Brass)

Recommendation: Refactor

Summary: Dependency updates are sound but lack clear justification for MSRV changes. Risk: Medium · Confidence: 70%

Highlights

* Good test coverage

* All tests pass

Unknowns

* No linked issue

* Impact of MSRV change on users

Next actions

* Keep: Updated dependencies

* Drop: MSRV change if not justified

* Add: Justification for MSRV decision

Reflection questions

* What core assumption underpins this PR's approach?

* How does this change align with the project's longer-term goals?

* Could there be a simpler way to achieve the primary objective here?

MSRV impact is listed in PR summary. No impact. MSRV remains as 1.88.0.

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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@s3/Cargo.toml`:
- Line 100: The crate enables the tokio-rustls-tls feature with
reqwest/rustls-no-provider which requires callers to initialize a process-level
CryptoProvider before any TLS connections; update examples/tokio-backend.rs and
relevant documentation to show calling CryptoProvider::install_default() (for
example via rustls::crypto::ring::default_provider().install_default()) during
startup so code using the tokio-rustls-tls feature won't panic with "no
process-level CryptoProvider available."
🪄 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: e6e5d851-44e1-4498-b831-44866bad4f60

📥 Commits

Reviewing files that changed from the base of the PR and between b584ce7 and 1b81656.

📒 Files selected for processing (6)
  • aws-creds/Cargo.toml
  • aws-region/Cargo.toml
  • s3/Cargo.toml
  • s3/src/post_policy.rs
  • s3/src/request/request_trait.rs
  • s3/src/signing.rs

Comment thread s3/Cargo.toml

tokio-native-tls = ["aws-creds/native-tls", "reqwest/native-tls", "with-tokio"]
tokio-rustls-tls = ["aws-creds/rustls-tls", "reqwest/rustls-tls", "with-tokio"]
tokio-rustls-tls = ["aws-creds/rustls-tls", "reqwest/rustls-no-provider", "with-tokio"]
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 | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether a rustls CryptoProvider is explicitly installed in the codebase.
rg -n -C2 'install_default|CryptoProvider|rustls::crypto|aws_lc_rs|ring::default_provider' --type rust

# Verify all reqwest rustls feature usages in manifests.
rg -n -C2 'reqwest/.*rustls' --type toml

Repository: durch/rust-s3

Length of output: 340


🌐 Web query:

For reqwest 0.13, what does the rustls-no-provider feature require at runtime, and does it require explicit CryptoProvider installation?

💡 Result:

The rustls-no-provider feature in reqwest 0.13 enables rustls TLS without automatically including or activating a specific crypto provider (like aws-lc-rs or ring), unlike the default rustls feature which includes rustls-aws-lc-rs[1][2][3]. It still depends on rustls-platform-verifier for platform root certificates[1][3]. At runtime, since no crypto provider is automatically installed by this feature, rustls requires a CryptoProvider to be available, either via a process-global default set by CryptoProvider::install_default() (called early in the application, e.g., using rustls::crypto::ring::default_provider().install_default() or similar)[4][5], or by explicitly passing one when building the ClientConfig (e.g., via ClientConfig::builder_with_provider())[4][6]. Without this, attempts to use TLS will panic with "no process-level CryptoProvider available -- call CryptoProvider::install_default before this point"[7][8]. Thus, yes, it requires explicit CryptoProvider installation (process-global or per-config) at runtime for correct operation[2][9][7][4].

Citations:


🏁 Script executed:

# Check if this is a library or binary crate
head -20 s3/Cargo.toml

# Search more broadly for any crypto provider initialization
find . -name "*.rs" -type f | xargs grep -l "CryptoProvider\|install_default" 2>/dev/null | head -20

# Check the aws-creds dependency definition
rg -A5 "^\[dependencies\]" s3/Cargo.toml | head -40

# Look for lib.rs or main initialization code
find s3/src -name "lib.rs" -o -name "main.rs" | xargs head -50

Repository: durch/rust-s3

Length of output: 2340


🏁 Script executed:

# Find examples using tokio-rustls-tls or showing usage patterns
find . -name "*.rs" -type f | xargs grep -l "tokio-rustls-tls\|tokio_rustls_tls" 2>/dev/null

# Check if aws-creds/rustls-tls feature pulls in a provider
rg -A10 "feature.*rustls-tls" aws-creds/ --type toml 2>/dev/null || echo "aws-creds dir not found, checking dependencies"

# Look for any examples directory and see what's there
find . -type d -name examples -o -type d -name example 2>/dev/null | head -5

# List example files
ls -la examples/ 2>/dev/null || echo "No examples directory"

Repository: durch/rust-s3

Length of output: 692


🏁 Script executed:

# Check the tokio example
cat examples/tokio-backend.rs

# Check if aws-creds is referenced with feature flags anywhere
rg "aws-creds" s3/Cargo.toml -A2 -B2

# Try to find aws-creds crate online documentation or check if it's in workspace
find . -name "Cargo.toml" | xargs grep -l "aws.creds\|awscreds" | head -10

Repository: durch/rust-s3

Length of output: 2506


🏁 Script executed:

# Check aws-creds Cargo.toml to see what rustls-tls feature includes
cat aws-creds/Cargo.toml | grep -A20 "rustls-tls"

Repository: durch/rust-s3

Length of output: 187


🏁 Script executed:

# Check if there's documentation about rustls-tls in README or lib.rs
grep -r "rustls-tls\|CryptoProvider" s3/src/lib.rs examples/ README.md 2>/dev/null || echo "No documentation found"

# Verify the exact reqwest and attohttpc versions and their feature behavior
rg "reqwest|attohttpc" s3/Cargo.toml -A1 | head -20

Repository: durch/rust-s3

Length of output: 988


The tokio-rustls-tls feature requires explicit CryptoProvider initialization.

Line 100 enables reqwest/rustls-no-provider, which requires library users to call CryptoProvider::install_default() (e.g., rustls::crypto::ring::default_provider().install_default()) before making any TLS connections. Without this, code using tokio-rustls-tls will panic at runtime with "no process-level CryptoProvider available." The example in examples/tokio-backend.rs does not demonstrate this requirement. Add an example or documentation showing how users should initialize the provider when using this feature.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@s3/Cargo.toml` at line 100, The crate enables the tokio-rustls-tls feature
with reqwest/rustls-no-provider which requires callers to initialize a
process-level CryptoProvider before any TLS connections; update
examples/tokio-backend.rs and relevant documentation to show calling
CryptoProvider::install_default() (for example via
rustls::crypto::ring::default_provider().install_default()) during startup so
code using the tokio-rustls-tls feature won't panic with "no process-level
CryptoProvider available."

@LockedThread LockedThread marked this pull request as draft May 18, 2026 15:58
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