5 unstable releases

0.2.0 Nov 6, 2019
0.1.2 Jan 29, 2019
0.1.1 Jan 29, 2019
0.1.0 Jan 28, 2019
0.0.0 Sep 8, 2018

#13 in Concurrency

Download history 73399/week @ 2019-07-25 75625/week @ 2019-08-01 81478/week @ 2019-08-08 79910/week @ 2019-08-15 78021/week @ 2019-08-22 79116/week @ 2019-08-29 89730/week @ 2019-09-05 85867/week @ 2019-09-12 87464/week @ 2019-09-19 98397/week @ 2019-09-26 105892/week @ 2019-10-03 106976/week @ 2019-10-10 109880/week @ 2019-10-17 115208/week @ 2019-10-24 105997/week @ 2019-10-31

399,262 downloads per month
Used in 2,537 crates (17 directly)

MIT/Apache-2.0 AND BSD-2-Clause

140KB
2K 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