Debian Codegraph @

third_party/rust/crossbeam-queue/README.md

raw
1 # Crossbeam Queue
2
3 [![Build Status](https://github.com/crossbeam-rs/crossbeam/workflows/CI/badge.svg)](
4 https://github.com/crossbeam-rs/crossbeam/actions)
5 [![License](https://img.shields.io/badge/license-MIT_OR_Apache--2.0-blue.svg)](
6 https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-queue#license)
7 [![Cargo](https://img.shields.io/crates/v/crossbeam-queue.svg)](
8 https://crates.io/crates/crossbeam-queue)
9 [![Documentation](https://docs.rs/crossbeam-queue/badge.svg)](
10 https://docs.rs/crossbeam-queue)
11 [![Rust 1.38+](https://img.shields.io/badge/rust-1.38+-lightgray.svg)](
12 https://www.rust-lang.org)
13 [![chat](https://img.shields.io/discord/569610676205781012.svg?logo=discord)](https://discord.com/invite/JXYwgWZ)
14
15 This crate provides concurrent queues that can be shared among threads:
16
17 * [`ArrayQueue`], a bounded MPMC queue that allocates a fixed-capacity buffer on construction.
18 * [`SegQueue`], an unbounded MPMC queue that allocates small buffers, segments, on demand.
19
20 Everything in this crate can be used in `no_std` environments, provided that `alloc` feature is
21 enabled.
22
23 [`ArrayQueue`]: https://docs.rs/crossbeam-queue/*/crossbeam_queue/struct.ArrayQueue.html
24 [`SegQueue`]: https://docs.rs/crossbeam-queue/*/crossbeam_queue/struct.SegQueue.html
25
26 ## Usage
27
28 Add this to your `Cargo.toml`:
29
30 ```toml
31 [dependencies]
32 crossbeam-queue = "0.3"
33 ```
34
35 ## Compatibility
36
37 Crossbeam Queue supports stable Rust releases going back at least six months,
38 and every time the minimum supported Rust version is increased, a new minor
39 version is released. Currently, the minimum supported Rust version is 1.38.
40
41 ## License
42
43 Licensed under either of
44
45 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
46 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
47
48 at your option.
49
50 #### Contribution
51
52 Unless you explicitly state otherwise, any contribution intentionally submitted
53 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
54 dual licensed as above, without any additional terms or conditions.