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

Add cargo.lock, use cargo-msrv to verify MSRV #524

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Jul 7, 2024

This commit does a few things:

  • Adds Cargo.lock to the repo. Maybe others have different opinions; though it is now recommended, and it solves a bunch of the issues around Cargo.lock.msrv, closing Cargo.lock.msrv is outdated and missing packages #498. Without this, the remainder of this PR isn't feasible in its current state.
  • Uses cargo-msrv to verify the MSRV specs in the Cargo.toml files in CI, simplifying CI jobs
  • Adds 1.61.0 as the MSRV for cargo-insta
  • Bumps the MSRV for insta to 1.57.0, from 1.51.0, allowing us to remove some of the hacks around named profiles. 1.57.0 was released Dec 2021.

This commit does a few things:
- Adds `Cargo.lock` to the repo. Maybe others have different opinions; though it is [now recommended](rust-lang/cargo@3bb02f2#diff-3388c611c3bcae8ef4efe0ec5c9f5e22682b0db86c9e7137e70e5ba7d5e456c0R11), and it solves a bunch of the issues around `Cargo.lock.msrv`, closing mitsuhiko#498. Without this, the remainder of this PR isn't feasible in its current state.
- Uses `cargo-msrv` to verify the MSRV specs in the `Cargo.toml` files in CI, simplifying CI jobs
- Adds 1.61.0 as the MSRV for `cargo-insta`
- Bumps the MSRV for `insta` to 1.57.0, from 1.51.0, allowing us to remove some of the hacks around named profiles. This was released Dec 2021.
max-sixty added a commit to max-sixty/insta that referenced this pull request Jul 7, 2024
Currently when I run `cargo update && cargo build` locally, I get failures around `similar 2.5.0`. I'm not sure why CI has been passing; this is a test to check whether it's the cache which is holding an existing version of dependencies.

mitsuhiko#524 adds the lockfile to the repo, which would reduce the change of a local dev break
@max-sixty max-sixty requested a review from mitsuhiko July 9, 2024 20:23
.github/workflows/tests.yml Outdated Show resolved Hide resolved
@max-sixty max-sixty changed the title Use cargo-msrv to verify MSRV Add cargo.lock, use cargo-msrv to verify MSRV Jul 10, 2024
@max-sixty max-sixty mentioned this pull request Jul 10, 2024
@mitsuhiko mitsuhiko merged commit 223cb47 into mitsuhiko:master Aug 1, 2024
14 checks passed
@max-sixty max-sixty deleted the msrv branch August 1, 2024 17:55
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.

2 participants