Skip to content

Commit

Permalink
Make the queue module available on no_std
Browse files Browse the repository at this point in the history
The crossbeam_queue crate is no_std compatible since #455.
  • Loading branch information
phil-opp committed Mar 20, 2020
1 parent e302030 commit d8cfd0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ std = [
"crossbeam-queue",
"crossbeam-utils/std",
]
alloc = ["crossbeam-epoch/alloc", "crossbeam-utils/alloc"]
alloc = ["crossbeam-epoch/alloc", "crossbeam-utils/alloc", "crossbeam-queue/alloc"]

[dependencies]
cfg-if = "0.1.2"
Expand Down
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ pub mod utils {
pub use crossbeam_utils::CachePadded;
}

mod _queue {
pub extern crate crossbeam_queue;
}
#[doc(inline)]
pub use _queue::crossbeam_queue as queue;

cfg_if! {
if #[cfg(feature = "std")] {
mod _deque {
Expand All @@ -96,12 +102,6 @@ cfg_if! {
#[doc(hidden)]
pub use _channel::*;

mod _queue {
pub extern crate crossbeam_queue;
}
#[doc(inline)]
pub use _queue::crossbeam_queue as queue;

pub use crossbeam_utils::sync;
pub use crossbeam_utils::thread;
pub use crossbeam_utils::thread::scope;
Expand Down

0 comments on commit d8cfd0f

Please sign in to comment.