Skip to content

A micro-library for downloading from a URL and streaming it directly to the disk

License

Notifications You must be signed in to change notification settings

EFForg/tokio-dl-stream-to-disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tokio-dl-stream-to-disk

crates.io Documentation MIT licensed CI

A micro-library for downloading from a URL and streaming it directly to the disk

Getting Started

use std::path::Path;
use tokio_dl_stream_to_disk::AsyncDownload;

#[tokio::main]
async fn main() {
    if AsyncDownload::new("https://bit.ly/3yWXSOW", &Path::new("/tmp"), "5mb_test.bin").download(&None).await.is_ok() {
        println!("File downloaded successfully!");
    }
}

License: MIT

About

A micro-library for downloading from a URL and streaming it directly to the disk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages