diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0ead6de..2bc39f4b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added + +### Changed + +## [v0.3.0] - 2020-01-06 ### Added -- A nonblocking trait for interfacing with random number generation hardware. +- A nonblocking `rng` trait for interfacing with random number generation hardware. ### Changed -- The current versions of `InputPin` have been proven. These are `digital::v1::InputPin` - and `digital::v2::InputPin`. +- `void::Void` type for infallible methods has been replaced with `core::convert::Infallible` +- `digital::v2` has been promoted to the default +- `digital::v2::InputPin` and `digital::v2::InputPin` have been proven ## [v0.2.3] - 2019-05-09 diff --git a/Cargo.toml b/Cargo.toml index 0fc6ab3f7..05a02f2a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0" name = "embedded-hal" readme = "README.md" repository = "https://github.com/rust-embedded/embedded-hal" -version = "0.2.3" +version = "0.3.0" [dependencies.nb] version = "0.1.1" diff --git a/src/digital/mod.rs b/src/digital/mod.rs index 7b5b57025..0a18c4ffa 100644 --- a/src/digital/mod.rs +++ b/src/digital/mod.rs @@ -24,4 +24,4 @@ pub mod v2_compat; // Re-export old traits so this isn't a breaking change #[allow(deprecated)] -pub use self::v1::*; +pub use self::v2::*; diff --git a/src/digital/v2.rs b/src/digital/v2.rs index 0de0a877c..decd1421f 100644 --- a/src/digital/v2.rs +++ b/src/digital/v2.rs @@ -1,6 +1,6 @@ //! Digital I/O //! -//! Version 2 / fallible traits. Infallible implementations should set Error to `!`. +//! Version 2 / fallible traits. Infallible implementations should set Error to `core::convert::Infallible`. /// Single digital push-pull output pin pub trait OutputPin {