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+ runs-on : ubuntu-24.04
61+
62+ env :
63+ EXPECTED_MSRV : " 1.81"
64+
65+ steps :
66+ - uses : actions/checkout@v6
67+
68+ - uses : actions/cache@v5
69+ id : cache-cargo
70+ with :
71+ path : |
72+ ~/.cargo/bin/
73+ ~/.cargo/registry/index/
74+ ~/.cargo/registry/cache/
75+ ~/.cargo/git/db/
76+ target/
77+ key : ${{ runner.os }}-msrv-cargo-${{ hashFiles('**/Cargo.lock') }}
78+
79+ - name : Install Rust v${{ env.EXPECTED_MSRV }}
80+ run : rustup install ${EXPECTED_MSRV}
81+
82+ - name : Run cargo build using Rust v${{ env.EXPECTED_MSRV }}
83+ run : cargo +${EXPECTED_MSRV} build --workspace --all-features
84+
5985 build :
6086 strategy :
6187 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