clone-stream 0.4.0

Turn any Stream into a cloneable stream where each clone receives all items independently.
Documentation

Clone-Stream

Crates.io Documentation

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.

Installation

cargo add clone-stream

Documentation

See the API documentation for examples and usage details.

Contributing

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