| 1 | [package] |
| 2 | name = "embassy-sync" |
| 3 | version = "0.6.2" |
| 4 | edition = "2021" |
| 5 | description = "no-std, no-alloc synchronization primitives with async support" |
| 6 | repository = "https://github.com/embassy-rs/embassy" |
| 7 | documentation = "https://docs.embassy.dev/embassy-sync" |
| 8 | readme = "README.md" |
| 9 | license = "MIT OR Apache-2.0" |
| 10 | categories = [ |
| 11 | "embedded" , |
| 12 | "no-std" , |
| 13 | "concurrency" , |
| 14 | "asynchronous" , |
| 15 | ] |
| 16 | |
| 17 | [package.metadata.embassy_docs] |
| 18 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-sync-v$VERSION/embassy-sync/src/" |
| 19 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-sync/src/" |
| 20 | target = "thumbv7em-none-eabi" |
| 21 | |
| 22 | [features] |
| 23 | std = ["critical-section/std" ] |
| 24 | turbowakers = [] |
| 25 | |
| 26 | [dependencies] |
| 27 | defmt = { version = "0.3" , optional = true } |
| 28 | log = { version = "0.4.14" , optional = true } |
| 29 | |
| 30 | futures-sink = { version = "0.3" , default-features = false, features = [] } |
| 31 | futures-util = { version = "0.3.17" , default-features = false } |
| 32 | critical-section = "1.1" |
| 33 | heapless = "0.8" |
| 34 | cfg-if = "1.0.0" |
| 35 | embedded-io-async = { version = "0.6.1" } |
| 36 | |
| 37 | [dev-dependencies] |
| 38 | futures-executor = { version = "0.3.17" , features = [ "thread-pool" ] } |
| 39 | futures-test = "0.3.17" |
| 40 | futures-timer = "3.0.2" |
| 41 | futures-util = { version = "0.3.17" , features = [ "channel" , "sink" ] } |
| 42 | |
| 43 | # Enable critical-section implementation for std, for tests |
| 44 | critical-section = { version = "1.1" , features = ["std" ] } |
| 45 | static_cell = { version = "2" } |
| 46 | |