Skip to content

Cleanup download_file implementations #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 10, 2016
Merged

Conversation

brson
Copy link
Contributor

@brson brson commented Jul 10, 2016

This moves the download_file function from rustup_utils::raw to rustup_utils::download and pulls hashing and disk writing responsibilities out of the two implementations (curl and hyper).

This is in anticipation of adding a third implementation.

I have ambitions of pulling this file out into its own crate, as both a useful utility and teaching tool.

r? @alexcrichton

@alexcrichton alexcrichton merged commit 7f6b546 into rust-lang:master Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants