Support async-std, or become async-runtime agnostic #1662
Labels
client
kube Client related
dependencies
upgrades to dependencies
runtime
controller runtime related
wontfix
This is unlikely to be worked on
Would you like to work on this feature?
maybe
What problem are you trying to solve?
We are using
kube
in a project that is using theasync-std
environment and runtime, causing to import, compile, and manage the wholetokio
runtime (mostly done painlessly usingasync-global-executor
).While this is not a blocker nor really hard to manage in our case, it is frustrating to embed two distinct runtime, and get the cons of doing so (compile time, binary size, etc.) without having real benefits.
Describe the solution you'd like
To have crate feature like
tokio
andasync-std
allowing to tellkube
what async implemetor to use where applicable, similarly to what is done insqlx
(https://github.com/launchbadge/sqlx/blob/main/Cargo.toml), or even just to not rely on any specific async runtime and let users bring their own.I haven't checked more what are the functionnalities
kube
uses fromtokio
, so I don't know what this assumption implies in terms of workloadDescribe alternatives you've considered
Currently we use
kube
withasync-global-executor
, and it works well, at the cost of compile time and binary size.Documentation, Adoption, Migration Strategy
No response
Target crate for feature
kube-client
The text was updated successfully, but these errors were encountered: