Skip to content

Commit e234a05

Browse files
committed
Specify MSRV
1 parent f6a3e38 commit e234a05

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main ]
7+
workflow_dispatch:
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -21,15 +21,30 @@ jobs:
2121
run: cargo clippy --tests
2222

2323
build:
24-
name: "Build & Tests"
24+
name: "Build & Test"
2525
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
rust:
29+
- stable
30+
- beta
31+
- nightly
32+
- "1.53.0"
2633
steps:
2734
- uses: actions/checkout@v2
28-
- name: Build
29-
run: cargo build --verbose
30-
- name: Tests default features
35+
- uses: actions-rs/toolchain@v1
36+
with:
37+
toolchain: ${{ matrix.rust }}
38+
override: true
39+
- name: Test default features
3140
run: cargo test --verbose
32-
- name: Tests no default features
41+
- name: Test no default features
3342
run: cargo test --verbose --no-default-features
43+
44+
doc:
45+
name: "Doc"
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
3449
- name: Check doc generation
3550
run: cargo doc --verbose

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Fix repository link in `Cargo.toml`.
8+
- Specify Minimum Supported Rust Version.
89

910
### Fixed
1011

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ license = "MIT/Apache-2.0"
99
readme = "README.md"
1010
repository = "https://github.com/fengalin/option-operations"
1111
edition = "2018"
12+
rust-version = "1.53"
1213

1314
[features]
1415
default = ["std"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![crates.io][Crate Logo]][Crate]
44
[![Documentation][Doc Logo]][Doc]
55
[![Build Status][CI Logo]][CI]
6+
[![MSRV][rustc Logo]][Crate]
67

78
`option-operations` provides traits and auto-implementations to
89
improve arithmetic operations usability when dealing with `Option`s.
@@ -95,3 +96,4 @@ at your option.
9596
[CI]: https://github.com/fengalin/option-operations/actions/workflows/CI.yml
9697
[CI Logo]: https://github.com/fengalin/option-operations/workflows/CI/badge.svg
9798

99+
[rustc Logo]: https://img.shields.io/badge/rust-1.53.0%2B-blue.svg?maxAge=3600

0 commit comments

Comments
 (0)