File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 cargo vet --version
5757 cargo vet --locked
5858
59+ msrv :
60+ strategy :
61+ matrix :
62+ os :
63+ - windows-2025
64+ - ubuntu-24.04
65+
66+ runs-on : ${{ matrix.os }}
67+
68+ env :
69+ EXPECTED_MSRV : " 1.82"
70+
71+ steps :
72+ - uses : actions/checkout@v6
73+
74+ - uses : actions/cache@v5
75+ id : cache-cargo
76+ with :
77+ path : |
78+ ~/.cargo/bin/
79+ ~/.cargo/registry/index/
80+ ~/.cargo/registry/cache/
81+ ~/.cargo/git/db/
82+ target/
83+ key : ${{ runner.os }}-msrv-cargo-${{ hashFiles('**/Cargo.lock') }}
84+
85+ - name : Install Rust v${{ env.EXPECTED_MSRV }}
86+ run : rustup install ${{ env.EXPECTED_MSRV }}
87+
88+ - name : Run cargo build using Rust v${{ env.EXPECTED_MSRV }}
89+ run : cargo +${{ env.EXPECTED_MSRV }} build --workspace --all-features
90+
5991 build :
6092 strategy :
6193 matrix :
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ repository.workspace = true
77categories.workspace = true
88license.workspace = true
99edition.workspace = true
10+ rust-version.workspace = true
1011
1112[dependencies ]
1213dirs = " >= 1.0.0, < 7"
@@ -45,6 +46,7 @@ repository = "https://github.com/Ortham/libloadorder.git"
4546categories = [" games" ]
4647license = " GPL-3.0"
4748edition = " 2021"
49+ rust-version = " 1.82"
4850
4951# Deny some rustc lints that are allow-by-default.
5052[workspace .lints .rust ]
Original file line number Diff line number Diff line change @@ -47,3 +47,7 @@ cmake -B ffi/build ffi
4747cmake --build ffi/build
4848ctest --test-dir ffi/build --output-on-failure
4949```
50+
51+ ## Minimum supported Rust version
52+
53+ The minimum supported Rust version is ` 1.82 ` . This may change at any time, but there is a CI job to check that it does not change unexpectedly.
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ repository.workspace = true
88categories.workspace = true
99license.workspace = true
1010edition.workspace = true
11+ rust-version.workspace = true
1112
1213[dependencies ]
1314libloadorder = { path = " .." }
You can’t perform that action at this time.
0 commit comments