From 34d9ac5aefbf9ba50c0affba04ff4658302b68a9 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 7 Aug 2023 12:40:12 +0200 Subject: [PATCH 1/2] Update embedded-io-async to v0.5 --- embedded-nal-async/Cargo.toml | 2 +- embedded-nal-async/src/stack/tcp.rs | 8 ++++---- embedded-nal-async/src/stack/udp.rs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/embedded-nal-async/Cargo.toml b/embedded-nal-async/Cargo.toml index c2d96f7..556a661 100644 --- a/embedded-nal-async/Cargo.toml +++ b/embedded-nal-async/Cargo.toml @@ -18,4 +18,4 @@ ip_in_core = [] no-std-net = "0.6" heapless = "^0.7" embedded-nal = { version = "0.7.0", path = "../" } -embedded-io = { version = "0.4.0", default-features = false, features = ["async"] } +embedded-io-async = { version = "0.5.0" } diff --git a/embedded-nal-async/src/stack/tcp.rs b/embedded-nal-async/src/stack/tcp.rs index 83ab3c6..7cf02f7 100644 --- a/embedded-nal-async/src/stack/tcp.rs +++ b/embedded-nal-async/src/stack/tcp.rs @@ -1,16 +1,16 @@ use crate::SocketAddr; /// This trait is implemented by TCP/IP stacks. The trait allows the underlying driver to -/// construct multiple connections that implement the I/O traits from embedded-io. +/// construct multiple connections that implement the I/O traits from embedded-io-async. /// /// The associated connection type should close the connection when dropped. pub trait TcpConnect { /// Error type returned on connect failure. - type Error: embedded_io::Error; + type Error: embedded_io_async::Error; /// Type holding state of a TCP connection. Should close the connection when dropped. - type Connection<'a>: embedded_io::asynch::Read - + embedded_io::asynch::Write + type Connection<'a>: embedded_io_async::Read + + embedded_io_async::Write where Self: 'a; diff --git a/embedded-nal-async/src/stack/udp.rs b/embedded-nal-async/src/stack/udp.rs index df52039..49981ce 100644 --- a/embedded-nal-async/src/stack/udp.rs +++ b/embedded-nal-async/src/stack/udp.rs @@ -28,7 +28,7 @@ use crate::SocketAddr; /// address at connect time. pub trait ConnectedUdp { /// Error type returned by send and receive operations. - type Error: embedded_io::Error; + type Error: embedded_io_async::Error; /// Send the provided data to the connected peer async fn send(&mut self, data: &[u8]) -> Result<(), Self::Error>; @@ -67,7 +67,7 @@ pub trait ConnectedUdp { /// applicable. The implementer MAY check them for compatibility, and SHOULD do that in debug mode. pub trait UnconnectedUdp { /// Error type returned by send and receive operations. - type Error: embedded_io::Error; + type Error: embedded_io_async::Error; /// Send the provided data to a peer /// @@ -114,13 +114,13 @@ pub trait UnconnectedUdp { } /// This trait is implemented by UDP/IP stacks. The trait allows the underlying driver to -/// construct multiple connections that implement the I/O traits from embedded-io. +/// construct multiple connections that implement the I/O traits from embedded-io-async. /// /// Note that stacks with exotic connection creation methods may still not implement this, yet have /// objects that implement [`ConnectedUdp`] or similar. pub trait UdpStack { /// Error type returned on socket creation failure. - type Error: embedded_io::Error; + type Error: embedded_io_async::Error; /// Eventual socket return type of the [`.connect()`] method type Connected: ConnectedUdp; From d5b0179fbb5c95ff2d097b158eea3e7187599f6e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 7 Aug 2023 12:42:24 +0200 Subject: [PATCH 2/2] Release embedded-nal-async v0.5.0 --- embedded-nal-async/CHANGELOG.md | 8 +++++++- embedded-nal-async/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/embedded-nal-async/CHANGELOG.md b/embedded-nal-async/CHANGELOG.md index e67332f..6e6d052 100644 --- a/embedded-nal-async/CHANGELOG.md +++ b/embedded-nal-async/CHANGELOG.md @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +No unreleased changes yet. + +## [0.5.0] - 2023-08-07 + - Let `&T` for `T: Dns` implement `Dns` - Bumped to `embedded-nal` 0.7 +- Bumped to `embedded-io-async` 0.5 ## [0.4.0] - 2023-01-27 @@ -28,6 +33,7 @@ Remove TcpClientStack, TcpFullStack and UDP traits pending traits that support s Initial release to crates.io. -[Unreleased]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.4.0...HEAD +[Unreleased]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.5.0...HEAD +[0.5.0]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.4.0...embedded-nal-async-v0.5.0 [0.4.0]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.3.0...embedded-nal-async-v0.4.0 [0.1.0]: https://github.com/rust-embedded-community/embedded-nal/releases/tag/embedded-nal-async-v0.1.0 diff --git a/embedded-nal-async/Cargo.toml b/embedded-nal-async/Cargo.toml index 556a661..59193b1 100644 --- a/embedded-nal-async/Cargo.toml +++ b/embedded-nal-async/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embedded-nal-async" -version = "0.4.0" +version = "0.5.0" edition = "2021" description = "An Async Network Abstraction Layer (NAL) for Embedded Systems" license = "MIT OR Apache-2.0"