7 releases
| 0.2.2 | Mar 23, 2025 |
|---|---|
| 0.2.1 | Oct 18, 2024 |
| 0.2.0 | Oct 5, 2023 |
| 0.1.3 | Sep 25, 2023 |
| 0.1.1 | Dec 4, 2022 |
#816 in Data structures
2,426 downloads per month
Used in 36 crates
(3 directly)
69KB
1.5K
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–360KB