Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
run: cargo hack build --all --no-dev-deps
- run: cargo hack build --all --target thumbv7m-none-eabi --no-default-features --no-dev-deps
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps --features portable-atomic
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps --features critical-section
#- name: Install wasm-pack
# uses: taiki-e/install-action@wasm-pack
#- run: wasm-pack test --node
Expand Down Expand Up @@ -93,6 +94,7 @@ jobs:
uses: taiki-e/install-action@cargo-hack
- run: cargo hack build --all --rust-version
- run: cargo hack build --all --no-default-features --rust-version
- run: cargo hack build --all --no-default-features --rust-version --features critical-section

clippy:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }

[dependencies]
concurrent-queue = { version = "2.4.0", default-features = false }
critical-section = { version = "1.2.0", default-features = false, optional = true }
pin-project-lite = "0.2.12"
portable-atomic-util = { version = "0.2.0", default-features = false, optional = true, features = ["alloc"] }

Expand All @@ -45,6 +46,7 @@ default-features = false
optional = true

[dev-dependencies]
critical-section = { version = "1.2.0", features = ["std"] }
futures-lite = "2.0.0"
try-lock = "0.2.5"
waker-fn = "1"
Expand Down
4 changes: 2 additions & 2 deletions examples/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This mutex exposes both blocking and async methods for acquiring a lock.

#[cfg(not(target_family = "wasm"))]
#[cfg(all(feature = "std", not(target_family = "wasm")))]
mod example {
#![allow(dead_code)]

Expand Down Expand Up @@ -171,7 +171,7 @@ mod example {
}
}

#[cfg(target_family = "wasm")]
#[cfg(any(target_family = "wasm", not(feature = "std")))]
mod example {
pub(super) fn entry() {
println!("This example is not supported on wasm yet.");
Expand Down
Loading
Loading