Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there capabilities in the Rust standard library to download a file from a URL

I'm new to Rust.

I have written a few Hello World programs and the program I usually try to write next interacts with the web in some way. I usually try downloading a file. I figured I could learn something about the Rust "net" and "io" areas. But I have not been able to find an example of how to do this in Rust.

Are there any capabilities in the Standard Library to download a file from a URL?

like image 562
BuddyJoe Avatar asked Nov 24 '15 15:11

BuddyJoe


1 Answers

Rust's standard library has no HTTP functionality. You will have to use a third-party library like curl or hyper or implement something yourself.

like image 186
fjh Avatar answered Oct 14 '22 06:10

fjh