Add MSRV policy. Track in CI (#536)
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
2 qillqakuna · +13 −0
- .github/workflows/ci.yml +12 −0
- Cargo.toml +1 −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"