Skip to content

chore(deps): update Rust dependencies - #2404

Merged
josecelano merged 4 commits into
torrust:developfrom
josecelano:20261001-161542-update-dependencies
Oct 1, 2026
Merged

josecelano merged 4 commits into
torrust:developfrom
josecelano:20261001-161542-update-dependencies

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

  • Update the Cargo lockfile with the current compatible dependency releases.
  • Bump schemars to 1.2.2, removing the temporary version pin from the frontmatter validator.
  • Bump toml from 0.9 to 1.1 in the configuration package.
  • Bump axum-client-ip from 0.7 to 1.3 and migrate SecureClientIpSource to ClientIpSource.

Packages touched

  • contrib/dev-tools/checks/frontmatter-validator
  • packages/configuration
  • packages/axum-http-server

Validation

  • cargo clippy -p torrust-tracker-axum-http-server --all-targets
  • cargo test -p torrust-tracker-axum-http-server
  • ./contrib/dev-tools/git/hooks/pre-commit.sh
  • Pre-push hook: nightly format, nightly workspace check, nightly documentation build, and full test suite.

Supersedes #2338, #2398, and #2399.

    Updating crates.io index
     Locking 1 package to latest Rust 1.88 compatible version
    Updating lazy_static v1.5.0 -> v1.5.1
note: pass `--verbose` to see 10 unchanged dependencies behind latest
The =1.2.1 pin worked around schemars_derive 1.2.2 being unavailable in the registry. It is published now, so the pin is no longer needed. The generated v1 schema is unchanged (drift test passes).

Supersedes Dependabot PR torrust#2338.
No source changes were needed; the configuration tests (including the TOML round-trip and persistence tests) pass unchanged. figment still pulls toml 0.8 transitively.

Supersedes Dependabot PR torrust#2399.
SecureClientIpSource was renamed to ClientIpSource in axum-client-ip 1.0.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The migrations match the updated dependency APIs, preserve existing behavior, and are covered by the reported validation.

Review effort: Balanced
Findings: None

What changed in this PR

Updates compatible Rust dependencies and adapts the HTTP server to the renamed client-IP API.

Changes:

  • Upgrades schemars, toml, and axum-client-ip.
  • Migrates SecureClientIpSource to ClientIpSource.
  • Refreshes transitive lockfile dependencies.
File Description
Cargo.lock Records updated direct and transitive dependencies.
packages/​configuration/​Cargo.toml Upgrades toml to version 1.
packages/​axum-http-server/​Cargo.toml Upgrades axum-client-ip to version 1.
packages/​axum-http-server/​src/​v1/​routes.rs Adopts the renamed client-IP source API.
contrib/​dev-tools/​checks/​frontmatter-validator/​Cargo.toml Upgrades schemars and removes its temporary exact pin.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano self-assigned this Oct 1, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK f9662e0

@josecelano
josecelano merged commit 9a59787 into torrust:develop Oct 1, 2026
22 checks passed

This branch was previously deployed

1 inactive deployment
coverage — f9662e0f Deployed Oct 1, 2026 by josecelano via Generate Coverage Report #2385
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.

2 participants