Streamed upload to s3 with rusoto
问题 How can I upload file to s3 using rusoto, without reading file content to memory (streamed)? With this code: use std::fs::File; use std::io::BufReader; use rusoto_core::Region; use rusoto_s3::{PutObjectRequest, S3, S3Client, StreamingBody}; fn main() { let file = File::open("input.txt").unwrap(); let mut reader = BufReader::new(file); let s3_client = S3Client::new(Region::UsEast1); let result = s3_client.put_object(PutObjectRequest { bucket: String::from("example_bucket"), key: "example