diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml new file mode 100644 index 0000000..bba8d4f --- /dev/null +++ b/.github/workflows/msrv.yml @@ -0,0 +1,22 @@ +name: MSRV + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + msrv: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install MSRV toolchain + run: rustup toolchain install 1.86.0 --profile minimal + - name: Check with MSRV + run: cargo +1.86.0 check --verbose diff --git a/Cargo.toml b/Cargo.toml index 5cf558b..bedb274 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ repository = "https://github.com/Flagsmith/flagsmith-rust-client" readme = "README.md" categories = ["config", "api-bindings"] keywords = ["Flagsmith", "feature-flag", "remote-config"] +rust-version = "1.86.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html