Skip to content

Commit

Permalink
New release (#8)
Browse files Browse the repository at this point in the history
* New release

* Update changelog
  • Loading branch information
ivmarkov authored Jan 16, 2025
1 parent 0c01dc1 commit 3a3e788
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.0] - 2025-01-16
* Breaking:
* Update `edge-ws` to 0.4

## [0.8.0] - 2024-02-01
* Breaking changes in `asynch::ws` module:
* Replace the `const N: usize` parameter of all senders and receivers with a `&'a mut [u8]` buffer provided externally. Reason: this provides an option to (statically) pre-allocate the buffers outside of the async code thus resulting in futures' size reduction.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ serde = { version = "1", default-features = false, features = ["derive"] }
heapless = { version = "0.8", optional = true }
prost = { version = "0.11", optional = true }
postcard = { version = "1.0.2", default-features = false, optional = true }
gloo-net = { version = "0.4", default-features = false, features = ["websocket"], optional = true }
gloo-net = { version = "0.6", default-features = false, features = ["websocket"], optional = true }
futures = { version = "0.3", default-features = false, features = ["alloc"], optional = true }
embassy-sync = "0.5"
embassy-sync = "0.6"
embassy-futures = { version = "0.1", optional = true }
embedded-io = { version = "0.6", default-features = false, optional = true }
embedded-io-async = { version = "0.6", default-features = false, optional = true }
embedded-svc = { version = "0.28", default-features = false, optional = true }
edge-ws = { version = "0.3", default-features = false, optional = true, features = ["io"] }
edge-ws = { version = "0.4", default-features = false, optional = true, features = ["io"] }
4 changes: 2 additions & 2 deletions src/asynch/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::notification::Notification;

use super::{Receiver, Sender};

impl<'t> Sender for &'t Notification {
impl Sender for &Notification {
type Error = Infallible;

type Data = ();
Expand All @@ -16,7 +16,7 @@ impl<'t> Sender for &'t Notification {
}
}

impl<'t> Receiver for &'t Notification {
impl Receiver for &Notification {
type Error = Infallible;

type Data = ();
Expand Down
14 changes: 10 additions & 4 deletions src/asynch/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod edge_ws_impl {
}
}

impl<'a, W, D> crate::asynch::Sender for WsSender<'a, W, D>
impl<W, D> crate::asynch::Sender for WsSender<'_, W, D>
where
W: Write,
D: SendData,
Expand Down Expand Up @@ -210,7 +210,7 @@ mod edge_ws_impl {
}
}

impl<'a, R, D> crate::asynch::Receiver for WsReceiver<'a, R, D>
impl<R, D> crate::asynch::Receiver for WsReceiver<'_, R, D>
where
R: Read,
D: ReceiveData,
Expand Down Expand Up @@ -277,7 +277,7 @@ pub mod embedded_svc_impl {
}
}

impl<'a, S, D> crate::asynch::Sender for WsSvcSender<'a, S, D>
impl<S, D> crate::asynch::Sender for WsSvcSender<'_, S, D>
where
S: ws::asynch::Sender,
D: SendData,
Expand Down Expand Up @@ -340,7 +340,7 @@ pub mod embedded_svc_impl {
}
}

impl<'a, R, D> crate::asynch::Receiver for WsSvcReceiver<'a, R, D>
impl<R, D> crate::asynch::Receiver for WsSvcReceiver<'_, R, D>
where
R: ws::asynch::Receiver,
D: ReceiveData,
Expand Down Expand Up @@ -377,6 +377,12 @@ pub mod embedded_svc_impl {
const W: usize = 2,
>([MaybeUninit<[u8; B]>; P], [MaybeUninit<[u8; B]>; P]);

impl<const P: usize, const B: usize, const W: usize> Default for Acceptor<P, B, W> {
fn default() -> Self {
Self::new()
}
}

impl<const P: usize, const B: usize, const W: usize> Acceptor<P, B, W> {
#[inline(always)]
pub const fn new() -> Self {
Expand Down

0 comments on commit 3a3e788

Please sign in to comment.