[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5537":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},5537,"crossbeam","crossbeam-rs\u002Fcrossbeam","crossbeam-rs","Tools for concurrent programming in Rust","",null,"Rust",8477,555,79,109,0,13,45,4,39.24,"Apache License 2.0",false,"master",[25,26,27,28,29,30,31],"concurrency","data-structures","lock-free","parallelism","rust","synchronization","threads","2026-06-12 02:01:11","# Crossbeam\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam\u002Fworkflows\u002FCI\u002Fbadge.svg)](\nhttps:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam\u002Factions)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT_OR_Apache--2.0-blue.svg)](\nhttps:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam#license)\n[![Cargo](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fcrossbeam.svg)](\nhttps:\u002F\u002Fcrates.io\u002Fcrates\u002Fcrossbeam)\n[![Documentation](https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Fbadge.svg)](\nhttps:\u002F\u002Fdocs.rs\u002Fcrossbeam)\n[![Rust 1.74+](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frust-1.74+-lightgray.svg)](\nhttps:\u002F\u002Fwww.rust-lang.org)\n[![chat](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F569610676205781012.svg?logo=discord)](https:\u002F\u002Fdiscord.com\u002Finvite\u002FJXYwgWZ)\n\nThis crate provides a set of tools for concurrent programming:\n\n#### Atomics\n\n* [`AtomicCell`], a thread-safe mutable memory location.\u003Csup>(no_std)\u003C\u002Fsup>\n* [`AtomicConsume`], for reading from primitive atomic types with \"consume\" ordering.\u003Csup>(no_std)\u003C\u002Fsup>\n\n#### Data structures\n\n* [`deque`], work-stealing deques for building task schedulers.\n* [`ArrayQueue`], a bounded MPMC queue that allocates a fixed-capacity buffer on construction.\u003Csup>(alloc)\u003C\u002Fsup>\n* [`SegQueue`], an unbounded MPMC queue that allocates small buffers, segments, on demand.\u003Csup>(alloc)\u003C\u002Fsup>\n\n#### Memory management\n\n* [`epoch`], an epoch-based garbage collector.\u003Csup>(alloc)\u003C\u002Fsup>\n\n#### Thread synchronization\n\n* [`channel`], multi-producer multi-consumer channels for message passing.\n* [`Parker`], a thread parking primitive.\n* [`ShardedLock`], a sharded reader-writer lock with fast concurrent reads.\n* [`WaitGroup`], for synchronizing the beginning or end of some computation.\n\n#### Utilities\n\n* [`Backoff`], for exponential backoff in spin loops.\u003Csup>(no_std)\u003C\u002Fsup>\n* [`CachePadded`], for padding and aligning a value to the length of a cache line.\u003Csup>(no_std)\u003C\u002Fsup>\n* [`scope`], for spawning threads that borrow local variables from the stack.\n\n*Features marked with \u003Csup>(no_std)\u003C\u002Fsup> can be used in `no_std` environments.*\u003Cbr\u002F>\n*Features marked with \u003Csup>(alloc)\u003C\u002Fsup> can be used in `no_std` environments, but only if `alloc`\nfeature is enabled.*\n\n[`AtomicCell`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fatomic\u002Fstruct.AtomicCell.html\n[`AtomicConsume`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fatomic\u002Ftrait.AtomicConsume.html\n[`deque`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fdeque\u002Findex.html\n[`ArrayQueue`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fqueue\u002Fstruct.ArrayQueue.html\n[`SegQueue`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fqueue\u002Fstruct.SegQueue.html\n[`channel`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fchannel\u002Findex.html\n[`Parker`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fsync\u002Fstruct.Parker.html\n[`ShardedLock`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fsync\u002Fstruct.ShardedLock.html\n[`WaitGroup`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fsync\u002Fstruct.WaitGroup.html\n[`epoch`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Fepoch\u002Findex.html\n[`Backoff`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Futils\u002Fstruct.Backoff.html\n[`CachePadded`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Futils\u002Fstruct.CachePadded.html\n[`scope`]: https:\u002F\u002Fdocs.rs\u002Fcrossbeam\u002Flatest\u002Fcrossbeam\u002Ffn.scope.html\n\n## Crates\n\nThe main `crossbeam` crate just [re-exports](src\u002Flib.rs) tools from\nsmaller subcrates:\n\n* [`crossbeam-channel`](crossbeam-channel)\n  provides multi-producer multi-consumer channels for message passing.\n* [`crossbeam-deque`](crossbeam-deque)\n  provides work-stealing deques, which are primarily intended for building task schedulers.\n* [`crossbeam-epoch`](crossbeam-epoch)\n  provides epoch-based garbage collection for building concurrent data structures.\n* [`crossbeam-queue`](crossbeam-queue)\n  provides concurrent queues that can be shared among threads.\n* [`crossbeam-utils`](crossbeam-utils)\n  provides atomics, synchronization primitives, scoped threads, and other utilities.\n\nThere is one more experimental subcrate that is not yet included in `crossbeam`:\n\n* [`crossbeam-skiplist`](crossbeam-skiplist)\n  provides concurrent maps and sets based on lock-free skip lists.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\ncrossbeam = \"0.8\"\n```\n\n## Compatibility\n\nCrossbeam supports stable Rust releases going back at least six months,\nand every time the minimum supported Rust version is increased, a new minor\nversion is released. Currently, the minimum supported Rust version is 1.74.\n\n## Contributing\n\nCrossbeam welcomes contribution from everyone in the form of suggestions, bug reports,\npull requests, and feedback. 💛\n\nIf you need ideas for contribution, there are several ways to get started:\n\n* Found a bug or have a feature request?\n  [Submit an issue](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam\u002Fissues\u002Fnew)!\n* Issues and PRs labeled with\n  [feedback wanted](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam\u002Fissues?utf8=%E2%9C%93&q=is%3Aopen+sort%3Aupdated-desc+label%3A%22feedback+wanted%22+)\n  need feedback from users and contributors.\n* Issues labeled with\n  [good first issue](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Fcrossbeam\u002Fissues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)\n  are relatively easy starter issues.\n\n#### RFCs\n\nWe also have the [RFCs](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Frfcs) repository for more\nhigh-level discussion, which is the place where we brainstorm ideas and propose\nsubstantial changes to Crossbeam.\n\nYou are welcome to participate in any open\n[issues](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Frfcs\u002Fissues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)\nor\n[pull requests](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Frfcs\u002Fpulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc).\n\n#### Learning resources\n\nIf you'd like to learn more about concurrency and non-blocking data structures, there's a\nlist of learning resources in our [wiki](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Frfcs\u002Fwiki),\nwhich includes relevant blog posts, papers, videos, and other similar projects.\n\nAnother good place to visit is [merged RFCs](https:\u002F\u002Fgithub.com\u002Fcrossbeam-rs\u002Frfcs\u002Ftree\u002Fmaster\u002Ftext).\nThey contain elaborate descriptions and rationale for features we've introduced to\nCrossbeam, but keep in mind that some of the written information is now out of date.\n\n#### Conduct\n\nThe Crossbeam project adheres to the\n[Rust Code of Conduct](https:\u002F\u002Fwww.rust-lang.org\u002Fpolicies\u002Fcode-of-conduct).\nThis describes the minimum behavior expected from all contributors.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n\nat your option.\n\nSome Crossbeam subcrates have additional licensing notices.\nTake a look at other readme files in this repository for more information.\n\n#### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","Crossbeam 是一个为 Rust 语言设计的并发编程工具库。它提供了丰富的原子操作、无锁数据结构、内存管理和线程同步功能，包括原子单元（如 `AtomicCell`）、工作窃取队列（如 `deque`）、多生产者多消费者通道（如 `channel`）以及基于 epoch 的垃圾收集器等。这些工具支持在标准和非标准环境中使用，并且部分功能可以在 `no_std` 环境下运行。Crossbeam 适用于需要高效并发处理的应用场景，特别是在开发高性能、低延迟的系统时，能够显著提升程序的并发能力和稳定性。",2,"2026-06-11 03:03:50","top_language"]