Skip to content
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

Update to async/await #617

Merged
merged 1 commit into from
Sep 7, 2019
Merged

Update to async/await #617

merged 1 commit into from
Sep 7, 2019

Conversation

seanmonstar
Copy link
Owner

@seanmonstar seanmonstar commented Sep 6, 2019

This updates reqwest from futures 0.1 to std::future::Future, and uses async/await syntax. This is a rebase and update of #592

Some features had to be temporarily disabled until the related dependencies upgrade as well:

  • rustls-tls
  • trust-dns
  • socks

Closes #565

@seanmonstar
Copy link
Owner Author

Bleck, none of the merge strategies are seeming to work, I'll just resolve manually.

@seanmonstar seanmonstar force-pushed the async-await branch 3 times, most recently from 91410a5 to 56271fc Compare September 6, 2019 22:35
@jhpratt
Copy link

jhpratt commented Sep 6, 2019

One thing I've noticed before, why deny warnings? Warnings can be added to defaults in editions, so there's no guarantee this code would compile in Rust 2021.

Co-authored-by: Danny Browning <danny.browning@protectwise.com>
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
@seanmonstar
Copy link
Owner Author

why deny warnings?

To make sure all warnings are addressed while developing the library. As a dependency, cargo caps the lints so that the deny won't stop compiling.

@jhpratt
Copy link

jhpratt commented Sep 7, 2019

Ah, didn't realize that cargo limits it when used as a dependency. In that case, do whatever you want 😆

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.

Update to std::future::Future
2 participants