From c7b9060a7443cd004d366586c418a3d95bf3447a Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 12 Aug 2025 20:23:20 +0200 Subject: fix: prepare embassy-sync 0.7.1 release * Add newtype for moved type to preserve API compat --- embassy-sync/Cargo.toml | 2 +- embassy-sync/src/channel.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'embassy-sync') diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 9e5c39f5e..e60f5e34c 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embassy-sync" -version = "0.7.0" +version = "0.7.1" edition = "2021" description = "no-std, no-alloc synchronization primitives with async support" repository = "https://github.com/embassy-rs/embassy" diff --git a/embassy-sync/src/channel.rs b/embassy-sync/src/channel.rs index a0e39fcb5..8e9fcc234 100644 --- a/embassy-sync/src/channel.rs +++ b/embassy-sync/src/channel.rs @@ -419,6 +419,11 @@ pub struct SendDynamicReceiver<'ch, T> { pub(crate) channel: &'ch dyn DynamicChannel, } +/// Receive-only access to a [`Channel`] without knowing channel size. +/// This version can be sent between threads but can only be created if the underlying mutex is Sync. +#[deprecated(since = "0.7.1", note = "please use `SendDynamicReceiver` instead")] +pub type SendableDynamicReceiver<'ch, T> = SendDynamicReceiver<'ch, T>; + impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> { fn clone(&self) -> Self { *self -- cgit