From 37ddc15a4aaef83efb8de8ed8dcb7aa432d22865 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Mon, 27 Sep 2021 22:46:13 +0200 Subject: [PATCH 1/2] Prepare 0.4.0-alpha.1 release --- CHANGELOG.md | 16 ++++++++++++---- Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 566dc86..547c2b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.4.0-alpha.1] - 2021-09-27 + ### Changed - Modified `OutputPin` behavior for active-low pins to match `InputPin` behavior. - Set default features to build both sysfs and cdev pin types. - Removed `Pin` export, use `CdevPin` or `SysfsPin`. -- Increased the Minimum Supported Rust Version to `1.46.0` due to an update of `bitflags`. - Adapted to `embedded-hal` `1.0.0-alpha.5` release. +- Increased the Minimum Supported Rust Version to `1.46.0` due to an update of `bitflags`. +- Updated `spidev` to version `0.5`. +- Updated `i2cdev` to version `0.5`. +- Updated `gpio-cdev` to version `0.5`. +- Updated `sysfs_gpio` to version `0.6`. - Updated `nb` to version `1`. ## [v0.3.0] - 2019-11-25 @@ -66,8 +72,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). Initial release -[Unreleased]: https://github.com/japaric/linux-embedded-hal/compare/v0.2.1...HEAD -[v0.2.2]: https://github.com/japaric/linux-embedded-hal/compare/v0.2.1...v0.2.2 +[Unreleased]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.4.0-alpha.1...HEAD +[v0.4.0-alpha.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.3.0...v0.4.0-alpha.1 +[v0.3.0]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.2...v0.3.0 +[v0.2.2]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.1...v0.2.2 [v0.2.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.0...v0.2.1 [v0.2.0]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.1.1...v0.2.0 -[v0.1.1]: https://github.com/japaric/linux-embedded-hal/compare/v0.1.0...v0.1.1 +[v0.1.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.1.0...v0.1.1 diff --git a/Cargo.toml b/Cargo.toml index 7ff56ac..756ec35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ keywords = ["Linux", "hal"] license = "MIT OR Apache-2.0" name = "linux-embedded-hal" repository = "https://github.com/rust-embedded/linux-embedded-hal" -version = "0.4.0-alpha.0" +version = "0.4.0-alpha.1" edition = "2018" [features] From bdc2668e3fea69065419c98715e266867332620f Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Mon, 27 Sep 2021 22:49:54 +0200 Subject: [PATCH 2/2] Update dependencies docs links --- src/cdev_pin.rs | 4 ++-- src/i2c.rs | 4 ++-- src/spi.rs | 4 ++-- src/sysfs_pin.rs | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cdev_pin.rs b/src/cdev_pin.rs index 6af3031..5a11fe1 100644 --- a/src/cdev_pin.rs +++ b/src/cdev_pin.rs @@ -4,13 +4,13 @@ /// Newtype around [`gpio_cdev::LineHandle`] that implements the `embedded-hal` traits /// -/// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.2.0/gpio_cdev/struct.LineHandle.html +/// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.5.0/gpio_cdev/struct.LineHandle.html pub struct CdevPin(pub gpio_cdev::LineHandle, bool); impl CdevPin { /// See [`gpio_cdev::Line::request`][0] for details. /// - /// [0]: https://docs.rs/gpio-cdev/0.2.0/gpio_cdev/struct.Line.html#method.request + /// [0]: https://docs.rs/gpio-cdev/0.5.0/gpio_cdev/struct.Line.html#method.request pub fn new(handle: gpio_cdev::LineHandle) -> Result { let info = handle.line().info()?; Ok(CdevPin(handle, info.is_active_low())) diff --git a/src/i2c.rs b/src/i2c.rs index c93e794..65d71ce 100644 --- a/src/i2c.rs +++ b/src/i2c.rs @@ -7,7 +7,7 @@ use std::path::{Path, PathBuf}; /// Newtype around [`i2cdev::linux::LinuxI2CDevice`] that implements the `embedded-hal` traits /// -/// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.3.1/i2cdev/linux/struct.LinuxI2CDevice.html +/// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.5.0/i2cdev/linux/struct.LinuxI2CDevice.html pub struct I2cdev { inner: i2cdev::linux::LinuxI2CDevice, path: PathBuf, @@ -17,7 +17,7 @@ pub struct I2cdev { impl I2cdev { /// See [`i2cdev::linux::LinuxI2CDevice::new`][0] for details. /// - /// [0]: https://docs.rs/i2cdev/0.3.1/i2cdev/linux/struct.LinuxI2CDevice.html#method.new + /// [0]: https://docs.rs/i2cdev/0.5.0/i2cdev/linux/struct.LinuxI2CDevice.html#method.new pub fn new

(path: P) -> Result where P: AsRef, diff --git a/src/spi.rs b/src/spi.rs index 2306a53..f5f1faa 100644 --- a/src/spi.rs +++ b/src/spi.rs @@ -9,13 +9,13 @@ use std::path::Path; /// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits /// -/// [`spidev::Spidev`]: https://docs.rs/spidev/0.4.0/spidev/struct.Spidev.html +/// [`spidev::Spidev`]: https://docs.rs/spidev/0.5.0/spidev/struct.Spidev.html pub struct Spidev(pub spidev::Spidev); impl Spidev { /// See [`spidev::Spidev::open`][0] for details. /// - /// [0]: https://docs.rs/spidev/0.4.0/spidev/struct.Spidev.html#method.open + /// [0]: https://docs.rs/spidev/0.5.0/spidev/struct.Spidev.html#method.open pub fn open

(path: P) -> io::Result where P: AsRef, diff --git a/src/sysfs_pin.rs b/src/sysfs_pin.rs index 5734f22..3d606ee 100644 --- a/src/sysfs_pin.rs +++ b/src/sysfs_pin.rs @@ -6,20 +6,20 @@ use std::path::Path; /// Newtype around [`sysfs_gpio::Pin`] that implements the `embedded-hal` traits /// -/// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html +/// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html pub struct SysfsPin(pub sysfs_gpio::Pin); impl SysfsPin { /// See [`sysfs_gpio::Pin::new`][0] for details. /// - /// [0]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html#method.new + /// [0]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html#method.new pub fn new(pin_num: u64) -> Self { SysfsPin(sysfs_gpio::Pin::new(pin_num)) } /// See [`sysfs_gpio::Pin::from_path`][0] for details. /// - /// [0]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html#method.from_path + /// [0]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html#method.from_path pub fn from_path

(path: P) -> sysfs_gpio::Result where P: AsRef,