Skip to content

Commit 0e97924

Browse files
committed
implement no_std event listeners
implement no_std event listeners
1 parent c36d7d5 commit 0e97924

File tree

4 files changed

+554
-522
lines changed

4 files changed

+554
-522
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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ categories = ["asynchronous", "concurrency"]
1515
exclude = ["/.*"]
1616

1717
[dependencies]
18-
parking = "2.0.0"
18+
concurrent-queue = { git = "https://github.com/smol-rs/concurrent-queue.git", default-features = false }
19+
parking = { version = "2", optional = true }
20+
21+
[target.'cfg(loom)'.dependencies]
22+
loom = "0.5"
23+
24+
[features]
25+
default = ["std"]
26+
std = ["parking", "concurrent-queue/std"]
1927

2028
[dev-dependencies]
29+
futures = { version = "0.3", default-features = false, features = ["std"] }
2130
waker-fn = "1"

0 commit comments

Comments
 (0)