Testing crate MSRV in CI

⚓ Rust    📅 2025-09-05    👤 surdeus    👁️ 2      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Testing crate MSRV in CI

I would like to get advice for the following problems:

  1. Imagine a repository with one crate. Assuming that it provides the rust-version field, how would you test it in with the rust-version toolchain without manually duplicating the version in CI config? Bonus points if it shares CI steps with stable toolchain and other variables in the testing matrix.
  2. A more complex setup: now we have a repository with several crates which have potentially different MSRVs which share the same workspace. How CI job from the previous step should accommodate for this? Remove the workspace Cargo.toml?

Right now in RustCrypto we specify MSRV manually (e.g. see this config) and I would like to find a better alternative.

1 post - 1 participant

Read full topic

🏷️ Rust_feed