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

Add async/await support #30

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Add async/await support #30

wants to merge 12 commits into from

Conversation

mwilliammyers
Copy link
Member

This is a draft PR because, although it is fairly usable in its current state (see google-apis-rs/generated@refactor/async), it has some missing functionality:

The above items correspond to FIXME comments in the code.

`IterableMethod::execute` & `ResumableUpload` cause compilation errors.
It reads the entire body into memory instead of implementing
Stream.
We need to refactor them to be async.
These features will be passed to reqwest and defaults to rustls-tls to
maintain backwards compatibility.
@mwilliammyers
Copy link
Member Author

I will move 2d58873 to a separate PR sometime soon...

@Nonius
Copy link

Nonius commented Jan 22, 2021

What is the state of this pull request? I would like to use it.

* master:
  Repeated method parameters need to be encoded as `field1=value1&field1=value2`
  Fix predecessor link in README
  Rearrange the bounds on Client::new() (#26)
@bes
Copy link

bes commented Mar 27, 2021

On my fork I changed to

reqwest = { version = "0.11.2", default-features = false, features = ["json"] }

to get the latest tokio. Seems to work pretty well for me so far. No other changes were needed.

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.

3 participants