Rust dependency updates¶
The Rust workspace uses Rust 1.95.0, selected by rust-toolchain.toml. The
resolved dependency graph is committed in Cargo.lock; CI and container builds
use --locked so they fail rather than resolving a different graph.
To update Rust dependencies intentionally:
- Use the toolchain selected by
rust-toolchain.toml. - Run
cargo update -p <crate> --precise <version>for a targeted update, orcargo generate-lockfileonly when deliberately refreshing the complete graph. - Review
Cargo.lock, including transitive version changes. - Run
cargo build --workspace --locked,cargo fmt --check,cargo clippy --workspace --all-targets --locked -- -D warnings, andcargo test --workspace --locked. - Commit manifest and lockfile changes together when a manifest changed.
Do not hand-edit Cargo.lock or use an unlocked CI/container build as a way to
refresh it.