Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
244: Update MSRV to 1.66; fix detection in CI r=Bromeon a=Bromeon

The unit-test job accidentally used the nightly compiler in MSRV check. Now, `minimal-deps` and `msrv` are two separate jobs.

MSRV 1.63 was incorrect -- two features require newer Rust versions:

1. discriminants on enums with fields (for `*Notification` types)
    https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html#explicit-discriminants-on-enums-with-fields

2. let-else
    https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html#let-else-statements

Co-authored-by: Jan Haller <[email protected]>
  • Loading branch information
bors[bot] and Bromeon authored Apr 25, 2023
2 parents d3a6236 + d1dac02 commit bab1070
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ jobs:

- name: linux
os: ubuntu-20.04
rust-toolchain: '1.63.0'
rust-toolchain: nightly
rust-special: -minimal-deps
rust-cache-key: minimal-deps

- name: linux
os: ubuntu-20.04
rust-toolchain: '1.66.0'
rust-special: -msrv

steps:
- uses: actions/checkout@v3
Expand All @@ -96,14 +102,7 @@ jobs:
uses: ./.github/composite/rust
with:
rust: ${{ matrix.rust-toolchain || 'stable' }}
cache-key: ${{ matrix.rust-special }} # '-minimal-deps' or empty/not defined

- name: "Install Rust nightly (minimal deps)"
if: matrix.rust-special == '-minimal-deps'
uses: ./.github/composite/rust
with:
rust: nightly
cache-key: minimal-deps-nightly
cache-key: ${{ matrix.rust-cache-key }} # only needed when rustc version is possibly the same

- name: "Install minimal dependency versions from Cargo"
if: matrix.rust-special == '-minimal-deps'
Expand Down Expand Up @@ -196,6 +195,7 @@ jobs:
rust-toolchain: nightly
rust-env-rustflags: -Zrandomize-layout


steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion godot-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot-bindings"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "ffi", "sys"]
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion godot-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot-codegen"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "codegen"]
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion godot-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot-core"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "2d", "3d"] # possibly: "ffi"
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion godot-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot-ffi"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "ffi"]
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion godot-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot-macros"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "derive", "macro"]
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion godot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "godot"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
license = "MPL-2.0"
keywords = ["gamedev", "godot", "engine", "2d", "3d"] # possibly: "ffi"
categories = ["game-engines", "graphics"]
Expand Down
2 changes: 1 addition & 1 deletion itest/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "itest"
version = "0.1.0"
edition = "2021"
rust-version = "1.63"
rust-version = "1.66"
publish = false

[lib]
Expand Down

0 comments on commit bab1070

Please sign in to comment.