Skip to content

Commit

Permalink
Merge #42
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and eldruin authored Jun 10, 2020
2 parents 9e6f0ec + 58cce62 commit 25bf2be
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ matrix:
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)

- env: TARGET=armv7-unknown-linux-gnueabihf
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
Expand All @@ -33,6 +33,22 @@ matrix:
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)

# MSRV
- env: TARGET=armv7-unknown-linux-gnueabihf
rust: 1.36.0
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
addons:
apt:
packages:
- libc6-armhf-cross
- libc6-dev-armhf-cross
- gcc-arm-linux-gnueabihf

# MSRV
- env: TARGET=x86_64-unknown-linux-gnu
rust: 1.36.0
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)


before_install:
- set -e
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default = [ "gpio_cdev", "gpio_sysfs" ]

[dependencies]
embedded-hal = { version = "0.2.3", features = ["unproven"] }
gpio-cdev = { version = "0.2", optional = true }
gpio-cdev = { version = "0.3", optional = true }
sysfs_gpio = { version = "0.5", optional = true }

i2cdev = "0.4.3"
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ See [gpio-cdev documentation](https://github.com/rust-embedded/gpio-cdev#sysfs-g

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

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

# Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.36.0 and up. It *might*
compile with older versions but that may change in any new patch release.

## License

Licensed under either of
Expand Down

0 comments on commit 25bf2be

Please sign in to comment.