30 releases (14 breaking)
| 0.15.0 | May 18, 2025 |
|---|---|
| 0.13.1 | Apr 9, 2025 |
| 0.13.0 | Mar 23, 2025 |
| 0.12.1 | Nov 6, 2024 |
| 0.6.0 | Nov 25, 2022 |
#615 in Rust patterns
595 downloads per month
Used in 27 crates
(5 directly)
92KB
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
~0–15MB
~139K SLoC