Skip to content

Commit

Permalink
use rust-version for the MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Mar 12, 2023
1 parent 646959d commit d1bd5e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
run: rustup default 1.56.0
- name: Install tombl
run: cargo install tombl

- name: Default features
run: cargo build
working-directory: ./tests/smoke-test
- name: Smoke test
run: |
eval $(tombl -e msrv=package.rust-version Cargo.toml)
rustup update $msrv
cd ./tests/smoke-test
cargo +$msrv build
embedded:
name: Build (embedded)
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name = "bitflags"
# 2. number in readme (for breaking changes)
version = "2.0.0"
edition = "2021"
rust-version = "1.56.0"
authors = ["The Rust Project Developers"]
license = "MIT OR Apache-2.0"
keywords = ["bit", "bitmask", "bitflags", "flags"]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ fn main() {

## Rust Version Support

The minimum supported Rust version is 1.56.0. This may be bumped in minor releases as necessary.
The minimum supported Rust version is documented in the `Cargo.toml` file.
This may be bumped in minor releases as necessary.

0 comments on commit d1bd5e2

Please sign in to comment.