Crates.io | shared_stream |
lib.rs | shared_stream |
version | 0.2.1 |
source | src |
created_at | 2021-03-02 23:36:02.113375 |
updated_at | 2022-02-04 15:29:20.025469 |
description | A crate for easily cloneable streams |
homepage | |
repository | https://github.com/marieell/shared-stream |
max_upload_size | |
id | 362902 |
size | 46,484 |
shared_stream
is a crate for easily cloneable streams.
Add this to your Cargo.toml
:
[dependencies]
shared_stream = "0.2"
Now, you can use shared_stream:
use shared_stream::Share;
let shared = stream::iter(1..=3).shared();
This crate is published under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.