Skip to content

Commit 114a45e

Browse files
authored
bump MSRV to 1.83 (#5531)
* bump MSRV to 1.83 * drop `return_position_impl_trait_in_traits` conditional code * drop `c_str_lit` cfg * drop `diagnostic_namespace` cfg * drop `io_error_more` cfg * drop `mut_ref_in_const_fn` cfg * newsfragment * clippy * update msrv badge * bump `quote` to 1.0.37
1 parent da5777a commit 114a45e

File tree

46 files changed

+97
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+97
-280
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ members = [
188188
"pytests",
189189
"examples",
190190
]
191-
package.rust-version = "1.74"
191+
package.rust-version = "1.83"
192192

193193
[package.metadata.docs.rs]
194194
no-default-features = true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![benchmark](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/PyO3/pyo3)
55
[![codecov](https://img.shields.io/codecov/c/gh/PyO3/pyo3?logo=codecov)](https://codecov.io/gh/PyO3/pyo3)
66
[![crates.io](https://img.shields.io/crates/v/pyo3?logo=rust)](https://crates.io/crates/pyo3)
7-
[![minimum rustc 1.74](https://img.shields.io/badge/rustc-1.74+-blue?logo=rust)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
7+
[![minimum rustc 1.83](https://img.shields.io/badge/rustc-1.83+-blue?logo=rust)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
88
[![discord server](https://img.shields.io/discord/1209263839632424990?logo=discord)](https://discord.gg/33kcChzH7f)
99
[![contributing notes](https://img.shields.io/badge/contribute-on%20github-Green?logo=github)](https://github.com/PyO3/pyo3/blob/main/Contributing.md)
1010

@@ -16,7 +16,7 @@
1616

1717
## Usage
1818

19-
Requires Rust 1.74 or greater.
19+
Requires Rust 1.83 or greater.
2020

2121
PyO3 supports the following Python distributions:
2222
- CPython 3.7 or greater

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pyo3-examples"
33
version = "0.0.0"
44
publish = false
55
edition = "2021"
6-
rust-version = "1.74"
6+
rust-version = "1.83"
77

88
[dev-dependencies]
99
pyo3 = { path = "..", features = ["auto-initialize", "extension-module"] }

examples/decorator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "decorator"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[lib]
88
name = "decorator"

examples/getitem/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "getitem"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[lib]
88
name = "getitem"

examples/maturin-starter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "maturin-starter"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[lib]
88
name = "maturin_starter"

examples/plugin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "plugin_example"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[dependencies]
88
pyo3 = { path = "../../", features = ["macros"] }

examples/setuptools-rust-starter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "setuptools-rust-starter"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[lib]
88
name = "setuptools_rust_starter"

examples/word-count/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "word-count"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.74"
5+
rust-version = "1.83"
66

77
[lib]
88
name = "word_count"

guide/src/features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Adds a dependency on [indexmap](https://docs.rs/indexmap) and enables conversion
172172

173173
### `jiff-02`
174174

175-
Adds a dependency on [jiff@0.2](https://docs.rs/jiff/0.2) and requires MSRV 1.70. Enables a conversion from [jiff](https://docs.rs/jiff)'s types to python:
175+
Adds a dependency on [jiff@0.2](https://docs.rs/jiff/0.2). Enables a conversion from [jiff](https://docs.rs/jiff)'s types to python:
176176

177177
- [SignedDuration](https://docs.rs/jiff/0.2/jiff/struct.SignedDuration.html) -> [`PyDelta`]({{#PYO3_DOCS_URL}}/pyo3/types/struct.PyDelta.html)
178178
- [TimeZone](https://docs.rs/jiff/0.2/jiff/tz/struct.TimeZone.html) -> [`PyTzInfo`]({{#PYO3_DOCS_URL}}/pyo3/types/struct.PyTzInfo.html)
@@ -217,7 +217,7 @@ Adds a dependency on [rust_decimal](https://docs.rs/rust_decimal) and enables co
217217

218218
### `time`
219219

220-
Adds a dependency on [time](https://docs.rs/time) and requires MSRV 1.67.1. Enables conversions between [time](https://docs.rs/time)'s types and Python:
220+
Adds a dependency on [time](https://docs.rs/time). Enables conversions between [time](https://docs.rs/time)'s types and Python:
221221

222222
- [Date](https://docs.rs/time/0.3.38/time/struct.Date.html) -> [`PyDate`]({{#PYO3_DOCS_URL}}/pyo3/types/struct.PyDate.html)
223223
- [Time](https://docs.rs/time/0.3.38/time/struct.Time.html) -> [`PyTime`]({{#PYO3_DOCS_URL}}/pyo3/types/struct.PyTime.html)

0 commit comments

Comments
 (0)