Crates.io | fkget |
lib.rs | fkget |
version | 0.7.1 |
source | src |
created_at | 2023-03-14 20:28:31.946588 |
updated_at | 2023-03-21 19:55:23.188164 |
description | A simple file downloader written in Rust |
homepage | |
repository | https://github.com/anishnath/fkget |
max_upload_size | |
id | 810129 |
size | 51,592 |
fkget download files from the internet and S3
To be Added support for GCS, Azure Blob Storage, and FTP
fkget is a simple library for downloading files using reqwest. It is designed to be used in a multithreaded environment.
use fkget::fk_get;
#[tokio::main]
async fn main() {
let url = "https://speed.hetzner.de/100MB.bin".to_string();
fk_get::download_file(&url).await.unwrap();
//Download S3 file
url = "s3://bucket/key".to_string();
fk_get::download_file(&url).await.unwrap();
}
fkget https://speed.hetzner.de/100MB.bin
fkget s3://bucket/jeykey
MIT