7 releases

0.2.3 Jun 11, 2020
0.2.2 May 28, 2020
0.2.1 Dec 24, 2019
0.2.0 Nov 6, 2019
0.0.0 Sep 8, 2018

#8 in Concurrency

Download history 143754/week @ 2020-03-16 148257/week @ 2020-03-23 146849/week @ 2020-03-30 143053/week @ 2020-04-06 146367/week @ 2020-04-13 156321/week @ 2020-04-20 154864/week @ 2020-04-27 153759/week @ 2020-05-04 174599/week @ 2020-05-11 170788/week @ 2020-05-18 179467/week @ 2020-05-25 197946/week @ 2020-06-01 208479/week @ 2020-06-08 196784/week @ 2020-06-15 188906/week @ 2020-06-22 174056/week @ 2020-06-29

681,108 downloads per month
Used in 3,160 crates (42 directly)

MIT/Apache-2.0 AND BSD-2-Clause

125KB
1.5K SLoC

Crossbeam Queue

Build Status License Cargo Documentation Rust 1.28+ 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.

Usage

Add this to your Cargo.toml:

[dependencies]
crossbeam-queue = "0.2"

Next, add this to your crate:

extern crate crossbeam_queue;

Compatibility

The minimum supported Rust version is 1.28. Any change to this is considered a breaking change.

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.

Third party software

This product includes copies and modifications of software developed by third parties:

See the source code files for more details.

Copies of third party licenses can be found in LICENSE-THIRD-PARTY.

Dependencies