• R/O
  • HTTP
  • SSH

Repository summary

No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン


Recent Commits RSS

Rev. Time Author Message
c02a5ab 2020-04-09 03:05:29 dyknon master deb/0.7.3+git200222-2+dyknon3 change package architecture to all
7b3892d 2020-04-09 02:07:15 dyknon deb/0.7.3+git200222-2+dyknon2 execute crate tests in build proc
4522dd2 2020-04-09 01:28:43 dyknon deb-crateinfo.pl - add target="cfg(...)" support
1ac0b3c 2020-04-08 06:33:09 dyknon deb/0.7.3+git200222-2+dyknon1 newer upstream versions not tagged on upstream repositor...
a59b908 2020-04-08 05:57:35 dyknon pristine-tar pristine-tar data for rust-crossbeam_0.7.3+git200222.orig...
2f4a4a0 2020-04-08 05:42:54 dyknon Merge upstream tag 'upstream/0.7.3+git200222'
c545357 2020-04-07 07:55:45 dyknon better build deps
39afa08 2020-04-07 04:14:09 dyknon deb/0.7.3-2 providing version
675e14c 2020-04-07 03:35:05 dyknon deb/0.7.3-1 patches
d4963d1 2020-04-07 03:34:07 dyknon misc

Recently edited Tags

Name Rev. Time Author
deb/0.7.3+git200222-2+dyknon3 c02a5ab 2020-04-09 03:06:25 dyknon
deb/0.7.3+git200222-2+dyknon2 7b3892d 2020-04-09 02:08:24 dyknon
deb/0.7.3+git200222-2+dyknon1 1ac0b3c 2020-04-08 09:28:57 dyknon
deb/0.7.3-2 39afa08 2020-04-07 06:40:31 dyknon
deb/0.7.3-1 675e14c 2020-04-07 06:40:10 dyknon
upstream/0.7.3 4153697 2020-04-05 03:46:56 dyknon
upstream/0.7.3+git200222 e32c891 2020-02-22 23:23:56 Jeehoon Kang


Name Rev. Time Author Message
master c02a5ab 2020-04-09 03:05:29 dyknon change package architecture...
pristine-tar a59b908 2020-04-08 05:57:35 dyknon pristine-tar data for rust-...
upstream 4153697 2020-04-05 03:46:56 dyknon New upstream version 0.7.3



Build Status License Cargo Documentation Rust 1.28+ chat

This crate provides a set of tools for concurrent programming:


  • [AtomicCell], a thread-safe mutable memory location.(no_std)
  • [AtomicConsume], for reading from primitive atomic types with "consume" ordering.(no_std)

Data structures

  • [deque], work-stealing deques for building task schedulers.
  • [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.

Memory management

  • [epoch], an epoch-based garbage collector.(alloc)

Thread synchronization

  • [channel], multi-producer multi-consumer channels for message passing.
  • [Parker], a thread parking primitive.
  • [ShardedLock], a sharded reader-writer lock with fast concurrent reads.
  • [WaitGroup], for synchronizing the beginning or end of some computation.


  • [Backoff], for exponential backoff in spin loops.(no_std)
  • [CachePadded], for padding and aligning a value to the length of a cache line.(no_std)
  • [scope], for spawning threads that borrow local variables from the stack.

Features marked with (no_std) can be used in no_std environments.
Features marked with (alloc) can be used in no_std environments, but only if alloc and nightly are enabled.


The main crossbeam crate just re-exports tools from smaller subcrates:

  • crossbeam-channel provides multi-producer multi-consumer channels for message passing.
  • crossbeam-deque provides work-stealing deques, which are primarily intended for building task schedulers.
  • crossbeam-epoch provides epoch-based garbage collection for building concurrent data structures.
  • crossbeam-queue provides concurrent queues that can be shared among threads.
  • crossbeam-utils provides atomics, synchronization primitives, scoped threads, and other utilities.

There is one more experimental subcrate that is not yet included in crossbeam:


Add this to your Cargo.toml:

crossbeam = "0.7"

Next, add this to your crate:

extern crate crossbeam;


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


Crossbeam welcomes contribution from everyone in the form of suggestions, bug reports, pull requests, and feedback. 💛

If you need ideas for contribution, there are several ways to get started:


We also have the RFCs repository for more high-level discussion, which is the place where we brainstorm ideas and propose substantial changes to Crossbeam.

You are welcome to participate in any open issues or pull requests.

Learning resources

If you'd like to learn more about concurrency and non-blocking data structures, there's a list of learning resources in our wiki, which includes relevant blog posts, papers, videos, and other similar projects.

Another good place to visit is merged RFCs. They contain elaborate descriptions and rationale for features we've introduced to Crossbeam, but keep in mind that some of the written information is now out of date.


The Crossbeam project adheres to the Rust Code of Conduct. This describes the minimum behavior expected from all contributors.


Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Some Crossbeam subcrates have additional licensing notices. Take a look at other readme files in this repository for more information.


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.