8 releases
| 0.2.6 | May 18, 2025 |
|---|---|
| 0.2.5 | Oct 18, 2024 |
| 0.2.3 | Oct 7, 2023 |
| 0.2.0 | Jul 10, 2023 |
| 0.1.0 | Nov 25, 2022 |
#431 in Concurrency
2,747 downloads per month
Used in 34 crates
(7 directly)
63KB
2K
SLoC
Rust Box
English | 简体中文
Rust Box This crate provides an odd set of tools for Rust programming:
Crates
The main rust-box crate just re-exports tools from smaller subcrates:
stream-extAn extension trait for Streams that provides a variety of convenient combinator functions.queue-extThe extended feature of the queue can convert the pop() function of the queue to Stream and the push() function to Sender.task-exec-queueA task execution queue. Can limit the number of concurrent tasks and execution order of the same type of tasks can be controlled.eventEventstd-extExpand the function of the standard library to make it more convenient to usempscMPSC channel based on queue-extdequemapDouble-ended queue with Map feature
Usage
Add this to your Cargo.toml:
[dependencies]
rust-box = "0.12"
Examples
- queue-ext-test.rs
- stream-ext-test.rs
- task-exec-queue-test.rs
- event-test.rs
- std-ext-test.rs
- channel-test.rs
- dequemap-test.rs
License
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.
Dependencies
~3–4.5MB
~78K SLoC