#stream #s3 #upload #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

#818 in Asynchronous

Download history 591/week @ 2024-07-21 1981/week @ 2024-07-28 2684/week @ 2024-08-04 2735/week @ 2024-08-11 1903/week @ 2024-08-18 1431/week @ 2024-08-25 2049/week @ 2024-09-01 932/week @ 2024-09-08 1070/week @ 2024-09-15 1590/week @ 2024-09-22 1167/week @ 2024-09-29 778/week @ 2024-10-06 841/week @ 2024-10-13 1050/week @ 2024-10-20 646/week @ 2024-10-27 1180/week @ 2024-11-03

3,758 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