Skip to content

Commit ee0e6af

Browse files
bors[bot]eldruin
andauthored
Merge #67
67: Prepare 0.4.0-alpha.1 release r=ryankurte a=eldruin Closes #62 Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents e177ef2 + bdc2668 commit ee0e6af

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

CHANGELOG.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.4.0-alpha.1] - 2021-09-27
11+
1012
### Changed
1113

1214
- Modified `OutputPin` behavior for active-low pins to match `InputPin` behavior.
1315
- Set default features to build both sysfs and cdev pin types.
1416
- Removed `Pin` export, use `CdevPin` or `SysfsPin`.
15-
- Increased the Minimum Supported Rust Version to `1.46.0` due to an update of `bitflags`.
1617
- Adapted to `embedded-hal` `1.0.0-alpha.5` release.
18+
- Increased the Minimum Supported Rust Version to `1.46.0` due to an update of `bitflags`.
19+
- Updated `spidev` to version `0.5`.
20+
- Updated `i2cdev` to version `0.5`.
21+
- Updated `gpio-cdev` to version `0.5`.
22+
- Updated `sysfs_gpio` to version `0.6`.
1723
- Updated `nb` to version `1`.
1824

1925
## [v0.3.0] - 2019-11-25
@@ -66,8 +72,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6672

6773
Initial release
6874

69-
[Unreleased]: https://github.com/japaric/linux-embedded-hal/compare/v0.2.1...HEAD
70-
[v0.2.2]: https://github.com/japaric/linux-embedded-hal/compare/v0.2.1...v0.2.2
75+
[Unreleased]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.4.0-alpha.1...HEAD
76+
[v0.4.0-alpha.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.3.0...v0.4.0-alpha.1
77+
[v0.3.0]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.2...v0.3.0
78+
[v0.2.2]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.1...v0.2.2
7179
[v0.2.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.2.0...v0.2.1
7280
[v0.2.0]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.1.1...v0.2.0
73-
[v0.1.1]: https://github.com/japaric/linux-embedded-hal/compare/v0.1.0...v0.1.1
81+
[v0.1.1]: https://github.com/rust-embedded/linux-embedded-hal/compare/v0.1.0...v0.1.1

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["Linux", "hal"]
99
license = "MIT OR Apache-2.0"
1010
name = "linux-embedded-hal"
1111
repository = "https://github.com/rust-embedded/linux-embedded-hal"
12-
version = "0.4.0-alpha.0"
12+
version = "0.4.0-alpha.1"
1313
edition = "2018"
1414

1515
[features]

src/cdev_pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
55
/// Newtype around [`gpio_cdev::LineHandle`] that implements the `embedded-hal` traits
66
///
7-
/// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.2.0/gpio_cdev/struct.LineHandle.html
7+
/// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.5.0/gpio_cdev/struct.LineHandle.html
88
pub struct CdevPin(pub gpio_cdev::LineHandle, bool);
99

1010
impl CdevPin {
1111
/// See [`gpio_cdev::Line::request`][0] for details.
1212
///
13-
/// [0]: https://docs.rs/gpio-cdev/0.2.0/gpio_cdev/struct.Line.html#method.request
13+
/// [0]: https://docs.rs/gpio-cdev/0.5.0/gpio_cdev/struct.Line.html#method.request
1414
pub fn new(handle: gpio_cdev::LineHandle) -> Result<Self, gpio_cdev::errors::Error> {
1515
let info = handle.line().info()?;
1616
Ok(CdevPin(handle, info.is_active_low()))

src/i2c.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
77

88
/// Newtype around [`i2cdev::linux::LinuxI2CDevice`] that implements the `embedded-hal` traits
99
///
10-
/// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.3.1/i2cdev/linux/struct.LinuxI2CDevice.html
10+
/// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.5.0/i2cdev/linux/struct.LinuxI2CDevice.html
1111
pub struct I2cdev {
1212
inner: i2cdev::linux::LinuxI2CDevice,
1313
path: PathBuf,
@@ -17,7 +17,7 @@ pub struct I2cdev {
1717
impl I2cdev {
1818
/// See [`i2cdev::linux::LinuxI2CDevice::new`][0] for details.
1919
///
20-
/// [0]: https://docs.rs/i2cdev/0.3.1/i2cdev/linux/struct.LinuxI2CDevice.html#method.new
20+
/// [0]: https://docs.rs/i2cdev/0.5.0/i2cdev/linux/struct.LinuxI2CDevice.html#method.new
2121
pub fn new<P>(path: P) -> Result<Self, i2cdev::linux::LinuxI2CError>
2222
where
2323
P: AsRef<Path>,

src/spi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ use std::path::Path;
99

1010
/// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits
1111
///
12-
/// [`spidev::Spidev`]: https://docs.rs/spidev/0.4.0/spidev/struct.Spidev.html
12+
/// [`spidev::Spidev`]: https://docs.rs/spidev/0.5.0/spidev/struct.Spidev.html
1313
pub struct Spidev(pub spidev::Spidev);
1414

1515
impl Spidev {
1616
/// See [`spidev::Spidev::open`][0] for details.
1717
///
18-
/// [0]: https://docs.rs/spidev/0.4.0/spidev/struct.Spidev.html#method.open
18+
/// [0]: https://docs.rs/spidev/0.5.0/spidev/struct.Spidev.html#method.open
1919
pub fn open<P>(path: P) -> io::Result<Self>
2020
where
2121
P: AsRef<Path>,

src/sysfs_pin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ use std::path::Path;
66

77
/// Newtype around [`sysfs_gpio::Pin`] that implements the `embedded-hal` traits
88
///
9-
/// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html
9+
/// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html
1010
pub struct SysfsPin(pub sysfs_gpio::Pin);
1111

1212
impl SysfsPin {
1313
/// See [`sysfs_gpio::Pin::new`][0] for details.
1414
///
15-
/// [0]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html#method.new
15+
/// [0]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html#method.new
1616
pub fn new(pin_num: u64) -> Self {
1717
SysfsPin(sysfs_gpio::Pin::new(pin_num))
1818
}
1919

2020
/// See [`sysfs_gpio::Pin::from_path`][0] for details.
2121
///
22-
/// [0]: https://docs.rs/sysfs_gpio/0.5.1/sysfs_gpio/struct.Pin.html#method.from_path
22+
/// [0]: https://docs.rs/sysfs_gpio/0.6.0/sysfs_gpio/struct.Pin.html#method.from_path
2323
pub fn from_path<P>(path: P) -> sysfs_gpio::Result<Self>
2424
where
2525
P: AsRef<Path>,

0 commit comments

Comments
 (0)