#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

#425 in Data structures

Download history 32/week @ 2024-08-16 44/week @ 2024-08-23 31/week @ 2024-08-30 65/week @ 2024-09-06 22/week @ 2024-09-13 126/week @ 2024-09-20 58/week @ 2024-09-27 112/week @ 2024-10-04 91/week @ 2024-10-11 106/week @ 2024-10-18 40/week @ 2024-10-25 305/week @ 2024-11-01 90/week @ 2024-11-08 30/week @ 2024-11-15 66/week @ 2024-11-22 23/week @ 2024-11-29

274 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–12MB
~139K SLoC