Skip to content

Document MSRV 1.32.0 and test it on CI #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.40.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.40.0
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)


before_install:
- set -e
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.40.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