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

dev-deps: downgrade criterion to 0.4 #799

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

piodul
Copy link
Collaborator

@piodul piodul commented Aug 25, 2023

The criterion library, since version 0.5, depends on clap v4 or higher. Recently, clap 4.4.0 has been released which has bumped its required MSRV to 1.70.0. Our MSRV is still 1.65.0. Apparently, the cargo resolver isn't smart enough to choose an older version of clap which still supports 1.65.0, so this breaks our MSRV build in CI (see rust-lang/cargo#9930).

In order to unblock the CI without checking in Cargo.toml - which would be annoying - the criterion dependency is downgraded to 0.4. This library is only used for benchmarks and is a dev-dependency, so it's not a big deal. No changes in the code are necessary.

In the future, if we decide to bump MSRV to 1.70.0 or further, we can update the dependency.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

The `criterion` library, since version 0.5, depends on `clap` v4 or
higher. Recently, `clap` 4.4.0 has been released which has bumped its
required MSRV to 1.70.0. Our MSRV is still 1.65.0. Apparently, the cargo
resolver isn't smart enough to choose an older version of `clap` which
still supports 1.65.0, so this breaks our MSRV build in CI
(see rust-lang/cargo#9930).

In order to unblock the CI without checking in Cargo.toml - which would
be annoying - the `criterion` dependency is downgraded to 0.4. This
library is only used for benchmarks and is a dev-dependency, so it's not
a big deal. No changes in the code are necessary.

In the future, if we decide to bump MSRV to 1.70.0 or further, we can
update the dependency.
@piodul piodul requested review from cvybhu, wprzytula and Lorak-mmk and removed request for cvybhu August 25, 2023 10:04
@wprzytula wprzytula merged commit 471c0ed into scylladb:main Aug 28, 2023
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