8000 GitHub - dcodesdev/dload
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dcodesdev/dload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dload

dload is a simple crate to help downloading files from the internet easily. It is a simple wrapper around the reqwest crate.

Usage

Add it to your package:

cargo add dload

Then you can use it like this:

use dload::Downloader;

#[tokio::main]
async fn main() {
  let url = "https://www.rust-lang.org/logos/rust-logo-512x512.png";

  Downloader::new()
    .set_output_dir(dir)
    .file_name("rust-logo.png")
    .download(url)
    .await
    .unwrap(
53BF
);
}

This will download the file from the given URL and save it to the given directory with the given file name.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0