Provide a async API for different async runtime crates and also a sync API #79
Replies: 3 comments 4 replies
-
You can actually use async-std today by providing your own implementation of the HttpService trait. If there's enough customer interest, we may consider providing first-class support, but it's worth noting that the workaround exists today. In the current SDK, you would still need to run a 1-threaded Tokio runtime to support retries (which have not yet been made runtime agnostic, although they are planned to be) |
Beta Was this translation helpful? Give feedback.
-
A sync API is also an interesting option, I'll start a separate discussion for that. |
Beta Was this translation helpful? Give feedback.
-
Created feature request here and locked this discussion |
Beta Was this translation helpful? Give feedback.
-
Maybe the sdk could support both popular async runtimes, tokio and async-std using feature flags? In my case, our project only uses the async-std crate, so we need to rewrite the necessary parts of the Rusoto crate ourselves using async-std runtime. It will be great if the aws-sdk-rust supports both runtimes using feature flags, and even better if it provides a blocking sync API too, to support different kind of projects. Actually, this is what the MongoDB rust driver does. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions