Skip to content

Commit 25bf2be

Browse files
bors[bot]eldruin
andauthored
Merge #42
42: Update gpio-cdev and add MSRV r=posborne a=eldruin Using `gpio-cdev` 0.3 we have a MSRV of 1.36.0 due to `nix`. This superseeds #41 Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents 9e6f0ec + 58cce62 commit 25bf2be

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.travis.yml

+17-1
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.36.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.36.0
50+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
51+
3652

3753
before_install:
3854
- set -e

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default = [ "gpio_cdev", "gpio_sysfs" ]
1616

1717
[dependencies]
1818
embedded-hal = { version = "0.2.3", features = ["unproven"] }
19-
gpio-cdev = { version = "0.2", optional = true }
19+
gpio-cdev = { version = "0.3", optional = true }
2020
sysfs_gpio = { version = "0.5", optional = true }
2121

2222
i2cdev = "0.4.3"

README.md

+7-2
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.36.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)