High level synchronous AWS S3 Rust client library.
This client wraps Rusoto S3 and provides the following features:
- check if bucket or object exists,
- list objects that match prefix as iterator that handles pagination transparently,
- put large objects via multipart API and follow upload progress via a callback,
- delete single or multiple objects via bulk delete API,
- deffer execution using
ensure
crate for putting and deleting objects.
Example usage
use ;
use Cursor;
use Read;
let test_bucket = var.expect;
let test_key = "foobar.test";
let s3 = S3 default;
let bucket = s3.check_bucket_exists.expect
.left.expect;
let bucket_key = from_key;
let body = new;
let object = s3.put_object.unwrap;
let mut body = Vec new;
s3.get_body.expect.read_to_end.unwrap;
assert_eq!;