Skip to content

Add async/await support#30

Draft
mwilliammyers wants to merge 12 commits intomasterfrom
refactor/async
Draft

Add async/await support#30
mwilliammyers wants to merge 12 commits intomasterfrom
refactor/async

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