#stream #sink #task #event #collections

rust-box

This crate provides an odd set of tools for Rust programming

24 releases (10 breaking)

0.11.1 Dec 4, 2023
0.10.1 Oct 25, 2023
0.7.1 Jul 10, 2023
0.6.2 Dec 4, 2022
0.6.0 Nov 25, 2022

#439 in Data structures

Download history 22/week @ 2023-11-02 40/week @ 2023-11-09 31/week @ 2023-11-16 41/week @ 2023-11-23 154/week @ 2023-11-30 30/week @ 2023-12-07 42/week @ 2023-12-14 60/week @ 2023-12-21 29/week @ 2023-12-28 16/week @ 2024-01-04 23/week @ 2024-01-11 11/week @ 2024-01-18 29/week @ 2024-01-25 32/week @ 2024-02-01 31/week @ 2024-02-08 294/week @ 2024-02-15

388 downloads per month

MIT/Apache

74KB
1.5K SLoC

Rust Box

GitHub Release crates.io Documentation

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 Event
  • std-ext Expand the function of the standard library to make it more convenient to use
  • mpsc MPSC channel based on queue-ext
  • dequemap Double-ended queue with Map feature

Usage

Add this to your Cargo.toml:

[dependencies]
rust-box = "0.11"

Examples

License

Licensed under either of

at your option.

Dependencies

~0–13MB
~142K SLoC