#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

#799 in Asynchronous

Download history 377/week @ 2024-01-02 420/week @ 2024-01-09 806/week @ 2024-01-16 387/week @ 2024-01-23 532/week @ 2024-01-30 178/week @ 2024-02-06 972/week @ 2024-02-13 1022/week @ 2024-02-20 963/week @ 2024-02-27 1250/week @ 2024-03-05 948/week @ 2024-03-12 808/week @ 2024-03-19 694/week @ 2024-03-26 538/week @ 2024-04-02 975/week @ 2024-04-09 1761/week @ 2024-04-16

4,021 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