http-to-s3

Crates.iohttp-to-s3
lib.rshttp-to-s3
version0.1.1
sourcesrc
created_at2022-12-20 09:33:53.291698
updated_at2022-12-20 10:08:38.062263
descriptionA small rust library that tries to efficiently move files from HTTP endpoints to S3
homepage
repositoryhttps://github.com/St4NNi/http-to-s3
max_upload_size
id742146
size23,133
Sebastian Beyvers (St4NNi)

documentation

README

Rust License Dependency status

http-to-s3

A small rust library that tries to efficiently move files from HTTP endpoints to S3.

Usage

Set the needed environment variables:

  • S3_ENDPOINT_HOST = The S3 endpoint that should be used
  • AWS_ACCESS_KEY_ID = S3 Access Key
  • AWS_SECRET_ACCESS_KEY = S3 Secret Key
use 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();

License

The API is licensed under the MIT license. See the License file for more information

Commit count: 7

cargo fmt