26 releases
0.12.1 | Nov 6, 2024 |
---|---|
0.11.1 | Dec 4, 2023 |
0.10.1 | Oct 25, 2023 |
0.7.1 | Jul 10, 2023 |
0.6.0 | Nov 25, 2022 |
#407 in Data structures
538 downloads per month
80KB
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-ext
An extension trait for Streams that provides a variety of convenient combinator functions.queue-ext
The extended feature of the queue can convert the pop() function of the queue to Stream and the push() function to Sender.task-exec-queue
A task execution queue. Can limit the number of concurrent tasks and execution order of the same type of tasks can be controlled.event
Eventstd-ext
Expand the function of the standard library to make it more convenient to usempsc
MPSC channel based on queue-extdequemap
Double-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–11MB
~137K SLoC