Skip to content

Commit

Permalink
Document std feature and fix portable-atomic feature (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueZeeKing authored May 29, 2024
1 parent 89c9f95 commit 5445f25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ exclude = ["/.*"]
[features]
default = ["std"]
std = ["concurrent-queue/std", "parking"]
portable-atomic = ["portable-atomic-util", "portable_atomic_crate"]
portable-atomic = [
"portable-atomic-util",
"portable_atomic_crate",
"concurrent-queue/portable-atomic",
]
loom = ["concurrent-queue/loom", "parking?/loom", "dep:loom"]

[lints.rust]
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
//!
//! # Features
//!
//! - The `std` feature (enabled by default) enables the use of the Rust standard library. Disable it for `no_std`
//! support
//!
//! - The `portable-atomic` feature enables the use of the [`portable-atomic`] crate to provide
//! atomic operations on platforms that don't support them.
//!
Expand Down

0 comments on commit 5445f25

Please sign in to comment.