Skip to content

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

Done

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
  2. mountaincoding commented on Nov 30, 2026

    @mountaincoding
    Contributor

    I'd be interested in working on this! Would you mind adding me as the assignee for this issue? Thank you

  3. francescobianco commented on Dec 4, 2026

    @francescobianco
    MemberAuthor

    Thanks @mountaincoding! 🙌 Merged in #12.

    Really appreciated the thorough PR description: cargo msrv find, the explicit check on 1.85.0 and the Linux run in Docker make the rust-version = "1.85" choice easy to trust. This also gives us a clean base for an MSRV job in CI later.

    As I mentioned in #5, you're very welcome to join the official Openapi® contributors registry: just reopen your PR there with openapi/openapi-cli as your main project. 🦀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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