From 9b032192f5f5311dec9186419d8feda79f25bd3d Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 10 Jun 2020 17:05:16 +0200 Subject: [PATCH 1/3] Update gpio-cdev --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a12b4e6..2494ff9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" From bc0fa14d2d4d6790ff40b44a7e0f9e199d25d588 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 10 Jun 2020 17:07:11 +0200 Subject: [PATCH 2/3] Add MSRV to CI --- .travis.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a36dfc3..062bb3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) @@ -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 From 58cce62f590abdf4d1889978345aaf947c9fda5c Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 10 Jun 2020 17:07:26 +0200 Subject: [PATCH 3/3] Document MSRV 1.36.0 in README --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22e0d3f..c84ad07 100644 --- a/README.md +++ b/README.md @@ -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