Skip to content

Commit d1d5add

Browse files
authored
Merge pull request #88 from Dirbaio/master
Update to embedded-io v0.5, release -nal-async v0.5
2 parents afdbe62 + d5b0179 commit d1d5add

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

embedded-nal-async/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
No unreleased changes yet.
11+
12+
## [0.5.0] - 2023-08-07
13+
1014
- Let `&T` for `T: Dns` implement `Dns`
1115
- Bumped to `embedded-nal` 0.7
16+
- Bumped to `embedded-io-async` 0.5
1217

1318
## [0.4.0] - 2023-01-27
1419

@@ -28,6 +33,7 @@ Remove TcpClientStack, TcpFullStack and UDP traits pending traits that support s
2833

2934
Initial release to crates.io.
3035

31-
[Unreleased]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.4.0...HEAD
36+
[Unreleased]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.5.0...HEAD
37+
[0.5.0]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.4.0...embedded-nal-async-v0.5.0
3238
[0.4.0]: https://github.com/rust-embedded-community/embedded-nal/compare/embedded-nal-async-v0.3.0...embedded-nal-async-v0.4.0
3339
[0.1.0]: https://github.com/rust-embedded-community/embedded-nal/releases/tag/embedded-nal-async-v0.1.0

embedded-nal-async/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embedded-nal-async"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
edition = "2021"
55
description = "An Async Network Abstraction Layer (NAL) for Embedded Systems"
66
license = "MIT OR Apache-2.0"
@@ -18,4 +18,4 @@ ip_in_core = []
1818
no-std-net = "0.6"
1919
heapless = "^0.7"
2020
embedded-nal = { version = "0.7.0", path = "../" }
21-
embedded-io = { version = "0.4.0", default-features = false, features = ["async"] }
21+
embedded-io-async = { version = "0.5.0" }

embedded-nal-async/src/stack/tcp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
use crate::SocketAddr;
22

33
/// This trait is implemented by TCP/IP stacks. The trait allows the underlying driver to
4-
/// construct multiple connections that implement the I/O traits from embedded-io.
4+
/// construct multiple connections that implement the I/O traits from embedded-io-async.
55
///
66
/// The associated connection type should close the connection when dropped.
77
pub trait TcpConnect {
88
/// Error type returned on connect failure.
9-
type Error: embedded_io::Error;
9+
type Error: embedded_io_async::Error;
1010

1111
/// Type holding state of a TCP connection. Should close the connection when dropped.
12-
type Connection<'a>: embedded_io::asynch::Read<Error = Self::Error>
13-
+ embedded_io::asynch::Write<Error = Self::Error>
12+
type Connection<'a>: embedded_io_async::Read<Error = Self::Error>
13+
+ embedded_io_async::Write<Error = Self::Error>
1414
where
1515
Self: 'a;
1616

embedded-nal-async/src/stack/udp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use crate::SocketAddr;
2828
/// address at connect time.
2929
pub trait ConnectedUdp {
3030
/// Error type returned by send and receive operations.
31-
type Error: embedded_io::Error;
31+
type Error: embedded_io_async::Error;
3232

3333
/// Send the provided data to the connected peer
3434
async fn send(&mut self, data: &[u8]) -> Result<(), Self::Error>;
@@ -67,7 +67,7 @@ pub trait ConnectedUdp {
6767
/// applicable. The implementer MAY check them for compatibility, and SHOULD do that in debug mode.
6868
pub trait UnconnectedUdp {
6969
/// Error type returned by send and receive operations.
70-
type Error: embedded_io::Error;
70+
type Error: embedded_io_async::Error;
7171

7272
/// Send the provided data to a peer
7373
///
@@ -114,13 +114,13 @@ pub trait UnconnectedUdp {
114114
}
115115

116116
/// This trait is implemented by UDP/IP stacks. The trait allows the underlying driver to
117-
/// construct multiple connections that implement the I/O traits from embedded-io.
117+
/// construct multiple connections that implement the I/O traits from embedded-io-async.
118118
///
119119
/// Note that stacks with exotic connection creation methods may still not implement this, yet have
120120
/// objects that implement [`ConnectedUdp`] or similar.
121121
pub trait UdpStack {
122122
/// Error type returned on socket creation failure.
123-
type Error: embedded_io::Error;
123+
type Error: embedded_io_async::Error;
124124

125125
/// Eventual socket return type of the [`.connect()`] method
126126
type Connected: ConnectedUdp<Error = Self::Error>;

0 commit comments

Comments
 (0)