Skip to content

Instantly share code, notes, and snippets.

View Jared-Sprague's full-sized avatar

Jared Sprague Jared-Sprague

View GitHub Profile
// Code from: http://patshaughnessy.net/2020/1/20/downloading-100000-files-using-async-rust
//
// Cargo.toml:
// [dependencies]
// tokio = { version = "0.2", features = ["full"] }
// reqwest = { version = "0.10", features = ["json"] }
// futures = "0.3"
use std::io::prelude::*;
use std::fs::File;