Skip to content

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

Open

Description

@francescobianco

Description

Cargo.toml sets edition = "2024" but does not declare a minimum supported Rust version (MSRV). The README badge only says "2024 edition", so users cannot tell which toolchain they need, and Cargo cannot help keep dependencies compatible with it.

Proposal

  • Find the real MSRV of the crate, for example with cargo-msrv (cargo msrv find). The floor is 1.85, the first release with edition 2024, but current dependencies (clap, reqwest, tokio…) may require something newer.
  • Add rust-version = "<msrv>" to [package] in Cargo.toml.
  • Update the Rust badge in README.md to show rust-<msrv>+.

Benefits

  • ✅ Users know exactly which toolchain is required
  • ✅ With edition 2024, Cargo's resolver v3 prefers dependency versions compatible with rust-version, so cargo update stops silently pulling in crates that need a newer compiler
  • ✅ Unlocks a CI job that checks the MSRV (see the related issue)

Acceptance criteria

  • rust-version is set in Cargo.toml
  • cargo +<msrv> build succeeds
  • README badge updated
  • The PR description says how the MSRV was determined

Context

This is part of bringing openapi-cli up to the same baseline the Openapi® Rust SDK just reached with its move to the Rust 2024 edition (openapi-rust-sdk#14, announced in discussions#86). The CLI already uses edition = "2024"; these issues make it hold up in practice.

New here?

This is a small, self-contained task: a great first contribution to an Openapi® project. Comment below to claim it, then fork, branch and open a PR referencing this issue. Questions are welcome in the thread. Once merged, you are welcome to add yourself to the official Openapi® contributors registry. 🦀

Activity

  1. added
    enhancement
    good first issue
    help wanted
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions