-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[RFE] Asynchronous IO support #10
Comments
Could you please explain why it's needed? Why can't you create an async Read impl that wraps what's already in this crate? |
Because If |
I personally think the ecosystem needs to figure something out that's better than "every crate that does I/O needs to provide impls of traits for every async runtime." Taking on a massive dependency like tokio for this tiny little library doesn't seem like a good fit to be honest. Is this the only viable path forward for you? If so, I would consider a patch if it looks maintainable to me. |
I pretty much agree with you personally, but I'm in essentially the same situation. The XML library I'm helping to maintain merged async support because someone needed it for a weird network protocol, so now the decoding feature I'm working on needs to be capable of working with that also. Modifying a vendored copy is always an option if you're strongly against it. There's a few other tweaks we might need to make such as being able to override the decoder sniffing to respect the XML declaration |
Would it be sufficient to support AsyncRead from the futures crate? I imagine you could then write an adapter to bridge with tokio. |
Would you be open to a feature that supported Tokio's
AsyncRead
trait for the underlying IO?The text was updated successfully, but these errors were encountered: