diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 090a8605..6235f1ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,31 @@ on: - master pull_request: {} +env: + RUST_MSRV: 1.60.0 + jobs: + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v1 + with: + path: | + ~/.cargo/bin + ~/.cargo/registry/index + ~/.cargo/registry/cache + ~/.cargo/git/db/ + target + key: "${{ runner.os }}-cargo-build-msrv-${{ hashFiles('**/Cargo.lock') }}" + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ env.RUST_MSRV }} + override: true + - uses: actions-rs/cargo@v1 + with: + command: check # typical build with various feature combinations build: name: Build diff --git a/Cargo.toml b/Cargo.toml index 9c22483f..88ccea4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = [".", "codegen"] [package] name = "rhai" version = "1.8.0" -rust-version = "1.57" +rust-version = "1.60" edition = "2018" authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"] description = "Embedded scripting for Rust" diff --git a/README.md b/README.md index b070ca1e..9b5779f5 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Targets and builds * All CPU and O/S targets supported by Rust, including: * WebAssembly (WASM) * `no-std` -* Minimum Rust version 1.57 +* Minimum Rust version 1.60 Standard features