Skip to content

Commit c361ecd

Browse files
committed
lower MSRV to 1.60 & define in Cargo.toml
according to [`cargo msrv`][] this is the lowest supported release. defining it in `Cargo.toml` ensures that consumers with older rust versions get a clear build error telling them to upgrade rust to use this library. [`cargo msrv`]: https://github.com/foresterre/cargo-msrv
1 parent 84ad509 commit c361ecd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
rust: [1.65.0, stable]
16+
rust: [1.60.0, stable]
1717
features: ['', '--all-features']
1818
runs-on: ubuntu-latest
1919
steps:

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "adafruit-bluefruit-protocol"
33
version = "0.1.0"
44
edition = "2021"
5+
rust-version = "1.60"
56

67
description = "A `no_std` parser for the Adafruit Bluefruit LE Connect controller protocol."
78
repository = "https://github.com/rursprung/adafruit-bluefruit-protocol-rs"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Note that this work is not affiliated with Adafruit.
1717
but you can opt to only select the event(s) you are interested in which will result in a small binary size.
1818
If other events are received, a `ProtocolParseError::DisabledControllerDataPackageType` will be returned.
1919

20-
## Build-time Requirements
21-
The crate is tested against stable rust and rust 1.65.0 (which was the stable version at the time the crate has been built).
22-
It is possible that it works with older versions as well but this is not tested.
20+
## Minimum Supported Rust Version (MSRV)
21+
This crate is guaranteed to compile on stable Rust 1.60 and up. It *might*
22+
compile with older versions but that may change in any new patch release.

0 commit comments

Comments
 (0)