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

Bump MSRV to 1.56.1 and update dependencies and Rust Edition #717

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

mtreinish
Copy link
Member

The previous minimum support Rust version of 1.48 was originally selected to match the latest version of Rust available through Debian stable. This was done primarily to support the piwheels build environemnt which installs rustc via Debian packages. However, the 1.48 MSRV is causing a lot development friction as it's quite old and is holding back a lot of dependencies. When weighing the relatively tiny piwheels user base (for an unsupported platform) against this it's probably time to decouple our MSRV for rustworkx from that and pick a version that makes the most sense for our development needs.

This commit raises the minimum supported rust version to 1.56.1 and then bumps all our dependencies held back because of the previous MSRV. At the same time the rust edition used for rustworkx is changed to be edition 2021 instead of edition 2018. This will enable us to leverage newer rust syntax now.

Fixes #716

The previous minimum support Rust version of 1.48 was originally
selected to match the latest version of Rust available through Debian
stable. This was done primarily to support the piwheels build
environemnt which installs rustc via Debian packages. However, the 1.48
MSRV is causing a lot development friction as it's quite old and is
holding back a lot of dependencies. When weighing the relatively tiny
piwheels user base (for an unsupported platform) against this it's
probably time to decouple our MSRV for rustworkx from that and pick a
version that makes the most sense for our development needs.

This commit raises the minimum supported rust version to 1.56.1 and then
bumps all our dependencies held back because of the previous MSRV. At
the same time the rust edition used for rustworkx is changed to be
edition 2021 instead of edition 2018. This will enable us to leverage
newer rust syntax now.

Fixes Qiskit#716
@coveralls
Copy link

coveralls commented Oct 26, 2022

Pull Request Test Coverage Report for Build 3342211914

  • 10 of 11 (90.91%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 96.916%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rustworkx-core/src/max_weight_matching.rs 9 10 90.0%
Totals Coverage Status
Change from base Build 3342189920: -0.03%
Covered Lines: 13295
Relevant Lines: 13718

💛 - Coveralls

Copy link
Collaborator

@IvanIsCoding IvanIsCoding left a comment

Choose a reason for hiding this comment

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

LGTM. Rust 1.56.1 is already one year old, I think it is worth updating to use the 2021 edition

@IvanIsCoding IvanIsCoding added the automerge Queue a approved PR for merging label Oct 28, 2022
@mergify mergify bot merged commit 70b7977 into Qiskit:main Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Queue a approved PR for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise MSRV to 1.56
3 participants