From 5a6e37d931ebd88064f871c7e0c7979171572253 Mon Sep 17 00:00:00 2001 From: BlueZeeKing Date: Sat, 18 May 2024 22:50:06 -0400 Subject: [PATCH 1/3] docs: Document `std` feature --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 11b8404..61b44fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -66,6 +66,9 @@ //! atomic operations on platforms that don't support them. //! //! [`portable-atomic`]: https://crates.io/crates/portable-atomic +//! +//! - The `std` feature enables the use of the Rust standard library. Disable it for `no_std` +//! support #![cfg_attr(not(feature = "std"), no_std)] #![allow(clippy::multiple_bound_locations)] // This is a WONTFIX issue with pin-project-lite From 47f5139e7985e32a08211ebf25829d779d8802e1 Mon Sep 17 00:00:00 2001 From: BlueZeeKing Date: Sat, 18 May 2024 22:58:50 -0400 Subject: [PATCH 2/3] fix: Correctly set concurrent-queue portable-atomic feature --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f41f62b..2abe59c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] From d17b227e35dd8726b8a7794cfaebfa6ff454929b Mon Sep 17 00:00:00 2001 From: BlueZeeKing Date: Tue, 28 May 2024 22:20:21 -0400 Subject: [PATCH 3/3] docs: Swap order of features list and add "(enabled by default)" --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 61b44fd..a6818b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,13 +62,13 @@ //! //! # 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. //! //! [`portable-atomic`]: https://crates.io/crates/portable-atomic -//! -//! - The `std` feature enables the use of the Rust standard library. Disable it for `no_std` -//! support #![cfg_attr(not(feature = "std"), no_std)] #![allow(clippy::multiple_bound_locations)] // This is a WONTFIX issue with pin-project-lite