From f09c2e0cf9080bb71f922c525af858b23c6abf4b Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Sat, 23 Sep 2023 20:11:12 +0100 Subject: [PATCH] Add MSRV policy. Track in CI --- .github/workflows/ci.yml | 12 ++++++++++++ Cargo.toml | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f802f01b3..f69feca29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,18 @@ jobs: - run: cargo build --no-default-features - run: cargo test --no-default-features --features taffy_tree + # MSRV check. + # Taffy only guarantees "latest stable". However we have this check here to ensure that we advertise + # our MSRV. We also make an effort not to increase MSRV in patch versions of Taffy. + test-features-msrv: + name: "Test Suite [Features: Default] (Rust 1.65)" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.65 + - run: cargo build + - run: cargo test + # Default test-features-default: name: "Test Suite [Features: Default]" diff --git a/Cargo.toml b/Cargo.toml index b441b548d..5d21cc5cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ authors = [ "Johnathan Kelley ", ] edition = "2021" +rust-version = "1.65" include = ["src/**/*", "Cargo.toml", "README.md"] description = "A flexible UI layout library " repository = "https://github.com/DioxusLabs/taffy"