aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-08-12 20:23:20 +0200
committerUlf Lilleengen <[email protected]>2025-08-12 21:05:32 +0200
commitc7b9060a7443cd004d366586c418a3d95bf3447a (patch)
tree38483f5642f1364a9323fcf99a5bdf9434dd5df0 /embassy-sync
parentac46e28c4b4f025279d8974adfb6120c6740e44e (diff)
fix: prepare embassy-sync 0.7.1 release
* Add newtype for moved type to preserve API compat
Diffstat (limited to 'embassy-sync')
-rw-r--r--embassy-sync/Cargo.toml2
-rw-r--r--embassy-sync/src/channel.rs5
2 files changed, 6 insertions, 1 deletions
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 @@
1[package] 1[package]
2name = "embassy-sync" 2name = "embassy-sync"
3version = "0.7.0" 3version = "0.7.1"
4edition = "2021" 4edition = "2021"
5description = "no-std, no-alloc synchronization primitives with async support" 5description = "no-std, no-alloc synchronization primitives with async support"
6repository = "https://github.com/embassy-rs/embassy" 6repository = "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> {
419 pub(crate) channel: &'ch dyn DynamicChannel<T>, 419 pub(crate) channel: &'ch dyn DynamicChannel<T>,
420} 420}
421 421
422/// Receive-only access to a [`Channel`] without knowing channel size.
423/// This version can be sent between threads but can only be created if the underlying mutex is Sync.
424#[deprecated(since = "0.7.1", note = "please use `SendDynamicReceiver` instead")]
425pub type SendableDynamicReceiver<'ch, T> = SendDynamicReceiver<'ch, T>;
426
422impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> { 427impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> {
423 fn clone(&self) -> Self { 428 fn clone(&self) -> Self {
424 *self 429 *self