Crates.io | http-to-s3 |
lib.rs | http-to-s3 |
version | 0.1.1 |
source | src |
created_at | 2022-12-20 09:33:53.291698 |
updated_at | 2022-12-20 10:08:38.062263 |
description | A small rust library that tries to efficiently move files from HTTP endpoints to S3 |
homepage | |
repository | https://github.com/St4NNi/http-to-s3 |
max_upload_size | |
id | 742146 |
size | 23,133 |
A small rust library that tries to efficiently move files from HTTP endpoints to S3.
Set the needed environment variables:
S3_ENDPOINT_HOST
= The S3 endpoint that should be usedAWS_ACCESS_KEY_ID
= S3 Access KeyAWS_SECRET_ACCESS_KEY
= S3 Secret Keyuse http-to-s3::upload_file;
upload_file(
"https://speed.hetzner.de/100MB.bin".to_string(), // Url
"test_bucket".to_string(), // Will be created if not exists
"test_key".to_string(), // The key in the s3 repo
None
)
.await
.unwrap();
The API is licensed under the MIT license. See the License file for more information