#sink #stream #collection #events #task

rust-box

This crate provides an odd set of tools for Rust programming

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

Download history 171/week @ 2024-07-27 47/week @ 2024-08-03 52/week @ 2024-08-10 15/week @ 2024-08-17 70/week @ 2024-08-24 25/week @ 2024-08-31 46/week @ 2024-09-07 62/week @ 2024-09-14 92/week @ 2024-09-21 61/week @ 2024-09-28 102/week @ 2024-10-05 127/week @ 2024-10-12 70/week @ 2024-10-19 129/week @ 2024-10-26 247/week @ 2024-11-02 56/week @ 2024-11-09

538 downloads per month

MIT/Apache

80KB
2K 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.12"

Examples

License

Licensed under either of

at your option.

Dependencies

~0–11MB
~137K SLoC