Skip to content

build(cargo): declare Rust 1.85 as MSRV - #10

Closed
mountaincoding wants to merge 1 commit into
openapi:mainfrom
mountaincoding:fix-4-rust-msrv
Closed

mountaincoding wants to merge 1 commit into
openapi:mainfrom
mountaincoding:fix-4-rust-msrv

Conversation

@mountaincoding

Copy link
Copy Markdown

Summary

  • Declare rust-version = "1.85" in Cargo.toml.
  • Update the README badge to display Rust 1.85+.

Application logic, dependencies and Cargo.lock remain unchanged.

MSRV determination

Used cargo-msrv v0.19.6 to determine the minimum compatible Rust version:

cargo install cargo-msrv --version 0.19.6 --locked
cargo msrv find -- cargo build --locked

The search returned Rust 1.85.1. Rust 1.85.0, the first release supporting edition 2024, was then tested and confirmed compatible with the committed Cargo.lock.

Testing

macOS (Apple Silicon)

rustup toolchain install 1.85.0 --profile minimal
cargo +1.85.0 build --locked
cargo +1.85.0 test --locked

Build succeeded; 3 tests passed, 0 failed.

Also tested with the stable toolchain (Rust 1.100.1):

cargo +stable build --locked
cargo +stable test --locked

Build succeeded; 3 tests passed, 0 failed.

Linux (x86-64 via Docker)

Tested in rust:1.85.0-bookworm from the repository root:

docker run --rm \
  --platform linux/amd64 \
  -v "$PWD:/app:ro" \
  -w /app \
  -e CARGO_TARGET_DIR=/tmp/target \
  rust:1.85.0-bookworm \
  bash -c 'rustc --version && cargo build --locked && cargo test --locked'

Build succeeded; 3 tests passed, 0 failed.

Additional validation

  • git diff --check passes.
  • README badge renders correctly.
  • No changes to Cargo.lock.

Closes #4

@mountaincoding mountaincoding closed this by deleting the head repository Dec 1, 2026
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.

Declare the MSRV (rust-version) in Cargo.toml

1 participant