Skip to content

Commit 542ac7f

Browse files
committed
Change Rust edition to 2021 and MSRV to 1.56
1 parent 3e9a9ed commit 542ac7f

File tree

21 files changed

+43
-24
lines changed

21 files changed

+43
-24
lines changed

.github/workflows/full-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
- rust: { toolchain: 'nightly' }
122122
testflags: '-- --skip ui_tests'
123123
- os: { id: ubuntu-latest, name: linux }
124-
rust: { toolchain: '1.51', postfix: ' (msrv 1.51)' }
124+
rust: { toolchain: '1.56', postfix: ' (msrv 1.56)' }
125125
testflags: '-- --skip ui_tests'
126126
- os: { id: ubuntu-latest, name: linux }
127127
rust: { toolchain: 'stable', postfix: ' (minimal-deps)', special: 'minimal-deps' }
@@ -253,9 +253,9 @@ jobs:
253253
- rust: nightly
254254
godot: "3.4.1"
255255
postfix: ' (nightly)'
256-
- rust: '1.51'
256+
- rust: '1.56'
257257
godot: "3.4.1"
258-
postfix: ' (msrv 1.51)'
258+
postfix: ' (msrv 1.56)'
259259

260260
# Test with oldest supported engine version
261261
- rust: stable

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343

4444
### Changed
4545

46-
- MSRV is now 1.51 ([#833](https://github.com/godot-rust/godot-rust/pull/833))
46+
- MSRV is now 1.56 ([#833](https://github.com/godot-rust/godot-rust/pull/833), [#870](https://github.com/godot-rust/godot-rust/pull/870))
47+
- Rust edition is now 2021 ([#870](https://github.com/godot-rust/godot-rust/pull/870))
4748
- `euclid` vector library replaced with `glam`, no longer part of public API ([#713](https://github.com/godot-rust/godot-rust/pull/713))
4849
- `Variant` has now a redesigned conversion API ([#819](https://github.com/godot-rust/godot-rust/pull/819))
4950
- Type renames (815, 828)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
The bindings cover most of the exposed API of Godot 3.4, and are being used on a number of projects in development, but we still expect non-trivial breaking changes in the API in the coming releases. godot-rust adheres to [Cargo's semantic versioning](https://doc.rust-lang.org/cargo/reference/semver.html).
1616

17+
Minimum supported Rust version (MSRV) is **1.56**.
18+
1719
## Engine compatibility
1820

1921
We are committed to keeping compatibility with the latest stable patch releases of all minor versions of the engine, starting from Godot 3.2:

bindings-generator/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ homepage = "https://godot-rust.github.io/"
88
license = "MIT"
99
version = "0.10.0-rc.0"
1010
workspace = ".."
11-
edition = "2018"
11+
edition = "2021"
12+
rust-version = "1.56"
1213

1314
[features]
1415
debug = []

examples/array-export/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name = "array_export"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
5-
edition = "2018"
5+
edition = "2021"
6+
rust-version = "1.56"
67
license = "MIT"
78
publish = false
89

examples/dodge-the-creeps/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "dodge_the_creeps"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
55
publish = false
6-
edition = "2018"
6+
edition = "2021"
7+
rust-version = "1.56"
78
license = "MIT"
89

910
[lib]

examples/hello-world/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "hello_world"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
55
publish = false
6-
edition = "2018"
6+
edition = "2021"
7+
rust-version = "1.56"
78
license = "MIT"
89

910
[lib]

examples/native-plugin/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name = "native_plugin"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
5-
edition = "2018"
5+
edition = "2021"
6+
rust-version = "1.56"
67
license = "MIT"
78
publish = false
89

examples/resource/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "resource"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
55
publish = false
6-
edition = "2018"
6+
edition = "2021"
7+
rust-version = "1.56"
78
license = "MIT"
89

910
[lib]

examples/rpc/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "rpc"
33
version = "0.1.0"
44
authors = ["The godot-rust developers"]
55
publish = false
6-
edition = "2018"
6+
edition = "2021"
7+
rust-version = "1.56"
78
license = "MIT"
89

910
[lib]

0 commit comments

Comments
 (0)