Skip to content

Commit 5b72c67

Browse files
committed
implement no_std event listeners
implement no_std event listeners
1 parent a38fcb4 commit 5b72c67

File tree

4 files changed

+556
-514
lines changed

4 files changed

+556
-514
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
if: startsWith(matrix.rust, 'nightly')
3030
run: cargo check -Z features=dev_dep
3131
- run: cargo test
32+
- name: Install cargo-hack
33+
uses: taiki-e/install-action@cargo-hack
34+
- run: rustup target add thumbv7m-none-eabi
35+
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps
3236

3337
msrv:
3438
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ keywords = ["condvar", "eventcount", "wake", "blocking", "park"]
1414
categories = ["asynchronous", "concurrency"]
1515
exclude = ["/.*"]
1616

17+
[dependencies]
18+
concurrent-queue = { git = "https://github.com/smol-rs/concurrent-queue.git", default-features = false }
19+
parking = { version = "2", optional = true }
20+
debug-here = "0.2.2"
21+
22+
[target.'cfg(loom)'.dependencies]
23+
loom = "0.5"
24+
25+
[features]
26+
default = ["std"]
27+
std = ["parking", "concurrent-queue/std"]
28+
1729
[dev-dependencies]
30+
fastrand = "1.8.0"
1831
futures = { version = "0.3", default-features = false, features = ["std"] }
1932
waker-fn = "1"

0 commit comments

Comments
 (0)