diff options
| author | Nathan Perry <[email protected]> | 2024-09-20 01:52:59 -0400 |
|---|---|---|
| committer | Nathan Perry <[email protected]> | 2024-09-20 01:58:03 -0400 |
| commit | 89bad07e817dec482d385f765da5be3b6d2d0e4c (patch) | |
| tree | 7771cd82627973d7ac8787e426d96d0f1ff7a875 /embassy-sync/Cargo.toml | |
| parent | d7780fcf83a8a35d7b09e5df7b62dd8218436715 (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.toml | 3 |
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 = [] | |||
| 27 | defmt = { version = "0.3", optional = true } | 27 | defmt = { version = "0.3", optional = true } |
| 28 | log = { version = "0.4.14", optional = true } | 28 | log = { version = "0.4.14", optional = true } |
| 29 | 29 | ||
| 30 | futures-sink = { version = "0.3", default-features = false, features = [] } | ||
| 30 | futures-util = { version = "0.3.17", default-features = false } | 31 | futures-util = { version = "0.3.17", default-features = false } |
| 31 | critical-section = "1.1" | 32 | critical-section = "1.1" |
| 32 | heapless = "0.8" | 33 | heapless = "0.8" |
| @@ -37,7 +38,7 @@ embedded-io-async = { version = "0.6.1" } | |||
| 37 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } | 38 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } |
| 38 | futures-test = "0.3.17" | 39 | futures-test = "0.3.17" |
| 39 | futures-timer = "3.0.2" | 40 | futures-timer = "3.0.2" |
| 40 | futures-util = { version = "0.3.17", features = [ "channel" ] } | 41 | futures-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 |
| 43 | critical-section = { version = "1.1", features = ["std"] } | 44 | critical-section = { version = "1.1", features = ["std"] } |
