Skip to content

Commit

Permalink
implement no_std event listeners
Browse files Browse the repository at this point in the history
implement no_std event listeners
  • Loading branch information
notgull committed Sep 6, 2022
1 parent c36d7d5 commit 0e97924
Show file tree
Hide file tree
Showing 4 changed files with 554 additions and 522 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
if: startsWith(matrix.rust, 'nightly')
run: cargo check -Z features=dev_dep
- run: cargo test
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: rustup target add thumbv7m-none-eabi
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps

msrv:
runs-on: ubuntu-latest
Expand Down
11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ categories = ["asynchronous", "concurrency"]
exclude = ["/.*"]

[dependencies]
parking = "2.0.0"
concurrent-queue = { git = "https://github.com/smol-rs/concurrent-queue.git", default-features = false }
parking = { version = "2", optional = true }

[target.'cfg(loom)'.dependencies]
loom = "0.5"

[features]
default = ["std"]
std = ["parking", "concurrent-queue/std"]

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

0 comments on commit 0e97924

Please sign in to comment.