Skip to content

Build with Rust 1.98 and update dependencies - #81

Merged
define-null merged 2 commits into
mainfrom
rust-1.98-deps
Sep 24, 2026
Merged

define-null merged 2 commits into
mainfrom
rust-1.98-deps

Conversation

@define-null

Copy link
Copy Markdown
Contributor

Summary

The workspace is pinned to Rust 1.83 (November 2024). This PR moves it to 1.98, the current stable release, and updates the dependencies within their semver ranges.

Changes

  • rust-toolchain: 1.83 → 1.98. CI picks it up from this file.
  • Dockerfile: rust:1.98-bookworm and cargo-chef:latest-rust-1.98-slim-bookworm. Both stay on bookworm, like the current images.
  • Fix the new clippy findings on 1.98 (9 small rewrites with no behaviour change):
    • router-controller: question_mark, unnecessary_map_or
    • collector-utils: useless_borrows_in_formatting
    • pings-collector: useless_conversion
  • cargo update: 258 crates updated, 80 added, 61 removed (e.g. tokio 1.43 → 1.53, hyper 1.5 → 1.11). The sqd-network and libp2p fork git dependencies keep their pinned revisions.

Not included

Upgrades that need Cargo.toml and code changes are left for follow-ups: axum 0.6 → 0.8, clickhouse 0.12 → 0.15, aws-sdk-s3 / aws-config 0.x → 1.x, prometheus 0.13 → 0.14, rand 0.8 → 0.10, base64 → 0.23, tikv-jemallocator 0.6 → 0.7, test-with 0.13 → 0.17.

test-with (a dev-dependency of collector-utils) depends on proc-macro-error2, which Cargo reports as containing code a future Rust version will reject. This is a warning only.

Testing

On 1.98, cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace pass. Both collectors start and log as before. The Docker images were not built locally.

🤖 Generated with Claude Code

define-null and others added 2 commits September 24, 2026 12:32
Pin 1.98 in rust-toolchain and in the Docker builder images, keeping
them on bookworm. Apply the fixes clippy 1.98 asks for: question_mark
and unnecessary_map_or in router-controller, useless_borrows_in_formatting
in collector-utils and useless_conversion in pings-collector.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
cargo update: 258 crates updated, 80 added, 61 removed. The git
dependencies (sqd-network, the libp2p fork) keep their pinned revisions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@define-null
define-null merged commit be0dd0e into main Sep 24, 2026
3 checks passed
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