tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 206Rust 8TOML 2CSS 1310 Sutichaykuna

Add MSRV policy. Track in CI (#536)

cc4b685d23d01f496ed12a0dcc8272267899f28a · ruwaq Nico Burns · (3 wata ñawpaq) · tayta 498a7470f · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

2 qillqakuna · +13 −0

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 <jkelleyrtp@gmail.com>",
 ]
 edition = "2021"
+rust-version = "1.65"
 include = ["src/**/*", "Cargo.toml", "README.md"]
 description = "A flexible UI layout library "
 repository = "https://github.com/DioxusLabs/taffy"