s3-algo 0.7.2

High-performance algorithms for batch operations to Amazon S3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use s3_algo::*;

#[tokio::main]
async fn main() {
    const N_FILES: usize = 10;
    let files =
        (0..N_FILES).map(|i| ObjectSource::data(format!("hey, {}", i), format!("hey{}", i)));
    let s3 = S3Algo::new(testing_sdk_client().await);
    s3.upload_files(
        "test-bucket".into(),
        files,
        |result| async move { println!("File {}/{} successfully uploaded", result.seq + 1, N_FILES)},
        |client| client.put_object()
    )
    .await
    .unwrap();
}