aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/Cargo.toml
diff options
context:
space:
mode:
authorNathan Perry <[email protected]>2024-09-20 01:52:59 -0400
committerNathan Perry <[email protected]>2024-09-20 01:58:03 -0400
commit89bad07e817dec482d385f765da5be3b6d2d0e4c (patch)
tree7771cd82627973d7ac8787e426d96d0f1ff7a875 /embassy-sync/Cargo.toml
parentd7780fcf83a8a35d7b09e5df7b62dd8218436715 (diff)
embassy_sync: `Sink` adapter for `pubsub::Pub`
Corresponding to the `Stream` impl for `pubsub::Sub`. Notable difference is that we need a separate adapter type to store the pending item, i.e. we can't `impl Sink for Pub` directly. Instead a method `Pub::sink(&self)` is exposed, which constructs a `PubSink`.
Diffstat (limited to 'embassy-sync/Cargo.toml')
-rw-r--r--embassy-sync/Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml
index 7b7d2bf8e..2f049b6bc 100644
--- a/embassy-sync/Cargo.toml
+++ b/embassy-sync/Cargo.toml
@@ -27,6 +27,7 @@ turbowakers = []
27defmt = { version = "0.3", optional = true } 27defmt = { version = "0.3", optional = true }
28log = { version = "0.4.14", optional = true } 28log = { version = "0.4.14", optional = true }
29 29
30futures-sink = { version = "0.3", default-features = false, features = [] }
30futures-util = { version = "0.3.17", default-features = false } 31futures-util = { version = "0.3.17", default-features = false }
31critical-section = "1.1" 32critical-section = "1.1"
32heapless = "0.8" 33heapless = "0.8"
@@ -37,7 +38,7 @@ embedded-io-async = { version = "0.6.1" }
37futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } 38futures-executor = { version = "0.3.17", features = [ "thread-pool" ] }
38futures-test = "0.3.17" 39futures-test = "0.3.17"
39futures-timer = "3.0.2" 40futures-timer = "3.0.2"
40futures-util = { version = "0.3.17", features = [ "channel" ] } 41futures-util = { version = "0.3.17", features = [ "channel", "sink" ] }
41 42
42# Enable critical-section implementation for std, for tests 43# Enable critical-section implementation for std, for tests
43critical-section = { version = "1.1", features = ["std"] } 44critical-section = { version = "1.1", features = ["std"] }