Crates.io | clone-stream |
lib.rs | clone-stream |
version | 0.4.0 |
created_at | 2025-04-17 21:51:45.468357+00 |
updated_at | 2025-09-25 11:53:41.902078+00 |
description | Turn any Stream into a cloneable stream where each clone receives all items independently. |
homepage | |
repository | https://github.com/wvhulle/clone-stream |
max_upload_size | |
id | 1638523 |
size | 106,279 |
Turn any Stream
into a cloneable stream where each clone receives all items independently.
For more background information, see my slides for a presentation on EuroRust 2025.
cargo add clone-stream
See the API documentation for examples and usage details.
Run tests:
cargo test
Use the clean_log::log
function for simple display of log messages in tests.
Test run a single benchmark pass:
cargo bench --bench fork_clone -- --test
Run standard statistical benchmarks (with detailed output):
cargo bench --bench fork_clone
Run all benchmarks (without performance change output):
cargo bench