Skip to content

Commit

Permalink
Bump MSRV to 1.70 (#1155)
Browse files Browse the repository at this point in the history
* Bump MSRV to 1.70

This commit bumps the MSRV for rustworkx in 0.15.0 to 1.70.0. This
enables us to use GATs (see #1143) and also enables to update some of
our dependencies which require newer versions of rust to compile.

* Use 1.70 instead of 1.7

* Update .github/workflows/main.yml

---------

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
  • Loading branch information
mtreinish and IvanIsCoding committed Apr 2, 2024
1 parent bd98b65 commit 1eb6508
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
]
include:
# Test minimal supported Rust version
- rust: 1.64
- rust: 1.70.0
python-version: 3.8
platform: { os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" }
msrv: "MSRV"
Expand Down
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ members = [
[workspace.package]
version = "0.15.0"
edition = "2021"
rust-version = "1.64"
rust-version = "1.70"
authors = ["Matthew Treinish <mtreinish@kortar.org>"]
repository = "https://github.com/Qiskit/rustworkx"
license = "Apache-2.0"
Expand All @@ -34,7 +34,6 @@ petgraph = "0.6.4"
rand = "0.8"
rand_pcg = "0.3"
rayon = "1.10"
rayon-cond = "1.7"

[lib]
name = "rustworkx"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![](https://img.shields.io/github/release/Qiskit/rustworkx.svg?style=popout-square)](https://github.com/Qiskit/rustworkx/releases)
[![](https://img.shields.io/pypi/dm/rustworkx.svg?style=popout-square)](https://pypi.org/project/rustworkx/)
[![Coverage Status](https://coveralls.io/repos/github/Qiskit/rustworkx/badge.svg?branch=main)](https://coveralls.io/github/Qiskit/rustworkx?branch=main)
[![Minimum rustc 1.64](https://img.shields.io/badge/rustc-1.64+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
[![Minimum rustc 1.70](https://img.shields.io/badge/rustc-1.70+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.03968/status.svg)](https://doi.org/10.21105/joss.03968)
[![arXiv](https://img.shields.io/badge/arXiv-2110.15221-b31b1b.svg)](https://arxiv.org/abs/2110.15221)
[![Zenodo](https://img.shields.io/badge/Zenodo-10.5281%2Fzenodo.5879859-blue)](https://doi.org/10.5281/zenodo.5879859)
Expand Down Expand Up @@ -59,7 +59,7 @@ environment.

If there are no precompiled binaries published for your system you'll have to
build the package from source. However, to be able able to build the package
from the published source package you need to have Rust >= 1.64 installed (and
from the published source package you need to have Rust >= 1.70 installed (and
also [cargo](https://doc.rust-lang.org/cargo/) which is normally included with
rust) You can use [rustup](https://rustup.rs/) (a cross platform installer for
rust) to make this simpler, or rely on
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/bump-msrv-170-f1518d5adb41f7c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
upgrade:
- |
The minimum supported rust version to build rustworkx and rustworkx-core
has been raised from 1.64 to 1.70. You will need to upgrade your rust
compiler version to at least version 1.70 to continue building from source.
Python library users who are installing rustworkx on a supported platform
will not need to make any changes.
2 changes: 1 addition & 1 deletion rustworkx-core/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rustworkx-core

[![License](https://img.shields.io/github/license/Qiskit/rustworkx.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)
[![Minimum rustc 1.41.1](https://img.shields.io/badge/rustc-1.41.1+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
[![Minimum rustc 1.70](https://img.shields.io/badge/rustc-1.70+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)

> :warning: The retworkx-core project has been renamed to **rustworkx-core**.
> If you're using retworkx-core 0.11.0 you will need to change your requirement
Expand Down

0 comments on commit 1eb6508

Please sign in to comment.