From 767d478b2defda91cf71342cee7576168b5fff45 Mon Sep 17 00:00:00 2001 From: la10736 Date: Sun, 7 Apr 2024 10:47:22 +0200 Subject: [PATCH] Fix #227 --- .github/workflows/test.yml | 6 ++++++ README.md | 6 ++++++ rstest/Cargo.toml | 1 + rstest/src/lib.rs | 7 ++++++- rstest_reuse/Cargo.toml | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b6f2a2..1d80d4b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,3 +33,9 @@ jobs: run: RSTEST_TEST_CHANNEL=beta; cargo test --all --verbose - name: Run tests nightly run: RSTEST_TEST_CHANNEL=nightly; cargo test --all --verbose + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack check --rust-version --workspace --all-targets --ignore-private diff --git a/README.md b/README.md index 9e22555..5640447 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ # Fixture-based test framework for Rust + + ## Introduction `rstest` uses procedural macros to help you on writing @@ -482,6 +484,10 @@ is raised, but it's also possible to exclude a variable using the You can learn more on [Docs][docs-link] and find more examples in [`tests/resources`](/rstest/tests/resources) directory. +## Rust version compatibility + +The minimum supported Rust version is 1.67.1. + ## Changelog See [CHANGELOG.md](/CHANGELOG.md) diff --git a/rstest/Cargo.toml b/rstest/Cargo.toml index 5c5cd53..2a4eb7e 100644 --- a/rstest/Cargo.toml +++ b/rstest/Cargo.toml @@ -12,6 +12,7 @@ license = "MIT OR Apache-2.0" name = "rstest" readme = "README.md" repository = "https://github.com/la10736/rstest" +rust-version = "1.67.1" version = "0.19.0" [features] diff --git a/rstest/src/lib.rs b/rstest/src/lib.rs index adf9e65..ba4852f 100644 --- a/rstest/src/lib.rs +++ b/rstest/src/lib.rs @@ -229,11 +229,16 @@ //! //! # Optional features //! -//! `rstest` Enable all fetures by default. You can disable them if you need to +//! `rstest` Enable all features by default. You can disable them if you need to //! speed up compilation. //! //! - **`async-timeout`** *(enabled by default)* — Implement timeout for async //! tests. +//! +//! # Rust version compatibility +//! +//! The minimum supported Rust version is 1.67.1. +//! #[doc(hidden)] pub mod magic_conversion; diff --git a/rstest_reuse/Cargo.toml b/rstest_reuse/Cargo.toml index 89e8470..6a1f2ba 100644 --- a/rstest_reuse/Cargo.toml +++ b/rstest_reuse/Cargo.toml @@ -12,6 +12,7 @@ license = "MIT OR Apache-2.0" name = "rstest_reuse" readme = "README.md" repository = "https://github.com/la10736/rstest" +rust-version = "1.60.0" version = "0.6.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html