Skip to content

Commit dd88f56

Browse files
bors[bot]eldruin
andauthored
Merge #41
41: Document MSRV 1.32.0 and test it on CI r=posborne a=eldruin See: rust-embedded/wg#445 Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents 734f41e + f9160ec commit dd88f56

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matrix:
1717
- env: TARGET=x86_64-unknown-linux-gnu
1818
rust: nightly
1919
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
20-
20+
2121
- env: TARGET=armv7-unknown-linux-gnueabihf
2222
rust: stable
2323
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
@@ -33,6 +33,22 @@ matrix:
3333
rust: stable
3434
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
3535

36+
# MSRV
37+
- env: TARGET=armv7-unknown-linux-gnueabihf
38+
rust: 1.32.0
39+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
40+
addons:
41+
apt:
42+
packages:
43+
- libc6-armhf-cross
44+
- libc6-dev-armhf-cross
45+
- gcc-arm-linux-gnueabihf
46+
47+
# MSRV
48+
- env: TARGET=x86_64-unknown-linux-gnu
49+
rust: 1.32.0
50+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
51+
3652

3753
before_install:
3854
- set -e

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ See [gpio-cdev documentation](https://github.com/rust-embedded/gpio-cdev#sysfs-g
1515

1616
This crate includes feature flag `gpio_cdev` that exposes `CdevPin` as wrapper around `LineHandle` from [gpio-cdev](https://crates.io/crates/gpio-cdev).
1717
To enable it update your Cargo.toml. Please note that in order to prevent `LineHandle` fd from closing you should
18-
assign to a variable, see [cdev issue](https://github.com/rust-embedded/gpio-cdev/issues/29) for more details.
18+
assign to a variable, see [cdev issue](https://github.com/rust-embedded/gpio-cdev/issues/29) for more details.
1919
```
2020
linux-embedded-hal = { version = "0.3", features = ["gpio_cdev"] }
21-
```
21+
```
2222

2323
`SysfsPin` can be still used with feature flag `gpio_sysfs`.
2424

25+
## Minimum Supported Rust Version (MSRV)
26+
27+
This crate is guaranteed to compile on stable Rust 1.32.0 and up. It *might*
28+
compile with older versions but that may change in any new patch release.
29+
2530
## License
2631

2732
Licensed under either of

0 commit comments

Comments
 (0)