Skip to content

Commit c692c0f

Browse files
committed
document MSRV
1 parent 5e56903 commit c692c0f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: [ ubuntu-latest, macos-latest, windows-latest ]
41+
# 1.56 is the MSRV
42+
rust-version: [ 1.56, stable ]
4143
fail-fast: false
4244
env:
4345
RUSTFLAGS: -D warnings
4446
steps:
4547
- uses: actions/checkout@v2
4648
- uses: actions-rs/toolchain@v1
4749
with:
48-
toolchain: stable
50+
toolchain: ${{ matrix.rust-version }}
4951
override: true
5052
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
5153
- name: Build

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ fn my_test(path: &Path) -> datatest_stable::Result<()> {
5454
datatest_stable::harness!(my_test, "path/to/fixtures", r"^.*/*");
5555
```
5656

57+
## Minimum supported Rust version (MSRV)
58+
59+
The minimum supported Rust version is **Rust 1.56**. MSRV bumps may be accompanied by a minor
60+
version update; at any time, at least the last 3 stable versions of Rust will be supported.
61+
5762
## See also
5863

5964
* [`datatest`](https://crates.io/crates/datatest): the original inspiration for this crate,

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
//! datatest_stable::harness!(my_test, "path/to/fixtures", r"^.*/*");
5252
//! ```
5353
//!
54+
//! # Minimum supported Rust version (MSRV)
55+
//!
56+
//! The minimum supported Rust version is **Rust 1.56**. MSRV bumps may be accompanied by a minor
57+
//! version update; at any time, at least the last 3 stable versions of Rust will be supported.
58+
//!
5459
//! # See also
5560
//!
5661
//! * [`datatest`](https://crates.io/crates/datatest): the original inspiration for this crate,

0 commit comments

Comments
 (0)