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

#171 in Concurrency

Download history 813437/week @ 2024-08-15 844302/week @ 2024-08-22 791219/week @ 2024-08-29 864872/week @ 2024-09-05 830940/week @ 2024-09-12 818331/week @ 2024-09-19 879143/week @ 2024-09-26 882111/week @ 2024-10-03 875331/week @ 2024-10-10 932422/week @ 2024-10-17 927526/week @ 2024-10-24 880517/week @ 2024-10-31 876352/week @ 2024-11-07 948618/week @ 2024-11-14 869576/week @ 2024-11-21 631719/week @ 2024-11-28

3,486,408 downloads per month
Used in 3,373 crates (190 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