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

```rust use std::path::Path; use tokiodlstreamtodisk::AsyncDownload;

[tokio::main]

async fn main() { if AsyncDownload::new("https://bit.ly/3yWXSOW", &Path::new("/tmp"), "5mbtest.bin").download(&None).await.isok() { println!("File downloaded successfully!"); } } ```

License: MIT