Skip to content

Commit

Permalink
Raise MSRV to 1.65 (#10481)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Feb 25, 2024
1 parent e12b8ae commit 43b8b79
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ jobs:
# Latest commit on the OpenSSL master branch, as of Feb 23, 2024.
- {VERSION: "3.12", NOXSESSION: "tests", OPENSSL: {TYPE: "openssl", VERSION: "11adf9a75d6b34723d1a20a0da4e4100ea6ca593"}}
# Builds with various Rust versions. Includes MSRV and next
# potential future MSRV:
# 1.64 - maturin, workspace inheritance
# 1.65 - Generic associated types (GATs), std::backtrace
- {VERSION: "3.12", NOXSESSION: "rust-noclippy,tests", RUST: "1.63.0"}
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "1.64.0"}
# potential future MSRV.
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "1.65.0"}
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "beta"}
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "nightly"}
timeout-minutes: 15
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changelog
* **BACKWARDS INCOMPATIBLE:** Support for OpenSSL less than 1.1.1e has been
removed. Users on older version of OpenSSL will need to upgrade.
* **BACKWARDS INCOMPATIBLE:** Dropped support for LibreSSL < 3.8.
* Updated the minimum supported Rust version (MSRV) to 1.65.0, from 1.63.0.
* :func:`~cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key`
now enforces a minimum RSA key size of 1024-bit. Note that 1024-bit is still
considered insecure, users should generally use a key size of 2048-bits.
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Fedora/RHEL/CentOS
.. warning::

For RHEL and CentOS you must be on version 8.8 or newer for the command
below to install a sufficiently new Rust. If your Rust is less than 1.63.0
below to install a sufficiently new Rust. If your Rust is less than 1.65.0
please see the :ref:`Rust installation instructions <installation:Rust>`
for information about installing a newer Rust.

Expand Down Expand Up @@ -312,7 +312,7 @@ Rust
a Rust toolchain.

Building ``cryptography`` requires having a working Rust toolchain. The current
minimum supported Rust version is 1.63.0. **This is newer than the Rust some
minimum supported Rust version is 1.65.0. **This is newer than the Rust some
package managers ship**, so users may need to install with the
instructions below.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pep8test = ["ruff", "mypy", "check-sdist", "click"]
target = "cryptography.hazmat.bindings._rust"
path = "src/rust/Cargo.toml"
py-limited-api = "auto"
rust-version = ">=1.63.0"
rust-version = ">=1.65.0"


[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
once_cell = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-cffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
pyo3 = { version = "0.20", features = ["abi3"] }
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-key-parsing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
asn1 = { version = "0.16.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-openssl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
cfg-if = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509-verification/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
asn1 = { version = "0.16.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["The cryptography developers <[email protected]>"]
edition = "2021"
publish = false
# This specifies the MSRV
rust-version = "1.63.0"
rust-version = "1.65.0"

[dependencies]
asn1 = { version = "0.16.0", default-features = false }

0 comments on commit 43b8b79

Please sign in to comment.