#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

#841 in Asynchronous

Download history 1463/week @ 2024-11-20 938/week @ 2024-11-27 1681/week @ 2024-12-04 1720/week @ 2024-12-11 1128/week @ 2024-12-18 477/week @ 2024-12-25 1568/week @ 2025-01-01 3041/week @ 2025-01-08 1300/week @ 2025-01-15 1043/week @ 2025-01-22 1213/week @ 2025-01-29 1050/week @ 2025-02-05 1845/week @ 2025-02-12 2750/week @ 2025-02-19 1542/week @ 2025-02-26 940/week @ 2025-03-05

7,189 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