google-apis-rs / generator

A binding and CLI generator for all google APIs
Apache License 2.0
71 stars 14 forks source link

Add async/await support #30

Open mwilliammyers opened 3 years ago

mwilliammyers commented 3 years ago

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.

mwilliammyers commented 3 years ago

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

Nonius commented 3 years ago

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

bes commented 3 years ago

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.