#stream #upload #s3 #rusoto #tokio

read-progress-stream

Stream reader wrapper that tracks the number of bytes read

4 releases (1 stable)

1.0.0 Jan 17, 2021
0.3.0 Jan 15, 2021
0.2.0 Jan 15, 2021
0.1.0 Jan 15, 2021

#825 in Asynchronous

Download history 830/week @ 2024-04-07 1654/week @ 2024-04-14 1464/week @ 2024-04-21 964/week @ 2024-04-28 1015/week @ 2024-05-05 3270/week @ 2024-05-12 1767/week @ 2024-05-19 2930/week @ 2024-05-26 1959/week @ 2024-06-02 222/week @ 2024-06-09 282/week @ 2024-06-16 443/week @ 2024-06-23 649/week @ 2024-06-30 1044/week @ 2024-07-07 413/week @ 2024-07-14 589/week @ 2024-07-21

2,703 downloads per month
Used in tauri-plugin-upload

MIT/Apache

3.5MB
92 lines

Read Progress Stream

Wrap a futures stream and report bytes so that uploading files can indicate progress.

To see an example progress bar run:

cargo test -- --nocapture

lib.rs:

Wrapper for a stream that stores the number of bytes read so that uploading to S3 using the rusoto_s3 crate can indicate upload progress for larger files.

See the test for example usage and run with --nocapture to see the mock progress bar:

cargo test -- --nocapture

Dependencies