#queue #stream #sender

queue-ext

The extended feature of the queue can convert the pop() function of the queue to Stream and the push() function to Sender

5 releases (3 breaking)

0.4.1 Oct 5, 2023
0.4.0 Nov 25, 2022
0.3.0 Sep 29, 2022
0.2.1 Sep 20, 2022
0.1.0 Sep 13, 2022

#821 in Concurrency

Download history 114/week @ 2023-12-13 114/week @ 2023-12-20 102/week @ 2023-12-27 69/week @ 2024-01-03 153/week @ 2024-01-10 98/week @ 2024-01-17 96/week @ 2024-01-24 46/week @ 2024-01-31 100/week @ 2024-02-07 64/week @ 2024-02-14 107/week @ 2024-02-21 265/week @ 2024-02-28 191/week @ 2024-03-06 185/week @ 2024-03-13 273/week @ 2024-03-20 345/week @ 2024-03-27

1,027 downloads per month
Used in 6 crates (4 directly)

MIT/Apache

16KB
472 lines

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

~1–1.8MB
~36K SLoC