Skip to content

Commit

Permalink
Add feature gate for atomic load/store, gate spsc behind loadstore
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriskras99 committed Mar 8, 2022
1 parent 9fb9cd7 commit 2a8f38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ repository = "https://github.com/japaric/heapless"
version = "0.7.10"

[features]
default = ["cas"]
default = ["atomics"]
atomics = ["loadstore", "cas"]
cas = ["atomic-polyfill"]
loadstore = ["atomic-polyfill"]
ufmt-impl = ["ufmt-write"]
# read the docs before enabling: makes `Pool` Sync on x86_64
x86-sync-pool = []
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub mod mpmc;
#[cfg(all(has_cas, feature = "cas"))]
pub mod pool;
pub mod sorted_linked_list;
#[cfg(has_atomics)]
#[cfg(all(has_atomics, feature = "loadstore"))]
pub mod spsc;

#[cfg(feature = "ufmt-impl")]
Expand Down

0 comments on commit 2a8f38c

Please sign in to comment.