Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set MSRV in Cargo.toml to 1.58.1 #116

Merged
merged 3 commits into from Feb 14, 2023
Merged

Conversation

samueltardieu
Copy link
Contributor

Setting the MSRV in Cargo.toml helps various tools to check if they can use a particular version of a crate.

The current lowest compiler with wich test-case currently builds is 1.58, this is the version I used in Cargo.toml. However, note that to run succesfully tests require a recent version.

Since 1.58.1 is a 2021 edition compiler, I bumped the edition to 2021 as well.

I've added a Github Actions job to check that the crate can be built (but not tested) with the documented MSRV.

I suggest later moving to https://github.com/dtolnay/rust-toolchain which supports using toolchains such as "stable minus 2 releases" which seems to meet test-case's published goals.

The crate does not build with rustc 1.57.0 while it does with
rustc 1.58.1.
Copy link
Collaborator

@luke-biel luke-biel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change. Thanks. One small change regarding consistency of edition is sub-crates and we can merge it.

@@ -1,7 +1,7 @@
[package]
name = "test-case"
version = "3.0.0"
edition = "2018"
edition = "2021"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also bump edition in crates/test-case-macros and crates/test-case-core.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in all crates in the repository.

The MSRV for this crate is rustc 1.58.1 which supports Rust 2021.
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.

None yet

2 participants