18 releases

0.3.11 Jan 8, 2024
0.3.10 Dec 24, 2023
0.3.8 Nov 22, 2022
0.3.6 Jul 23, 2022
0.0.0 Sep 8, 2018

#235 in Concurrency

Download history 598943/week @ 2023-11-27 583584/week @ 2023-12-04 576107/week @ 2023-12-11 536084/week @ 2023-12-18 285313/week @ 2023-12-25 458445/week @ 2024-01-01 594922/week @ 2024-01-08 601428/week @ 2024-01-15 631014/week @ 2024-01-22 731417/week @ 2024-01-29 624756/week @ 2024-02-05 631083/week @ 2024-02-12 624170/week @ 2024-02-19 686971/week @ 2024-02-26 662984/week @ 2024-03-04 265637/week @ 2024-03-11

2,275,108 downloads per month
Used in 2,655 crates (150 directly)

MIT/Apache

155KB
2K SLoC

Crossbeam Queue

Build Status License Cargo Documentation Rust 1.60+ chat

This crate provides concurrent queues that can be shared among threads:

  • ArrayQueue, a bounded MPMC queue that allocates a fixed-capacity buffer on construction.
  • SegQueue, an unbounded MPMC queue that allocates small buffers, segments, on demand.

Everything in this crate can be used in no_std environments, provided that alloc feature is enabled.

Usage

Add this to your Cargo.toml:

[dependencies]
crossbeam-queue = "0.3"

Compatibility

Crossbeam Queue supports stable Rust releases going back at least six months, and every time the minimum supported Rust version is increased, a new minor version is released. Currently, the minimum supported Rust version is 1.60.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies