-
Notifications
You must be signed in to change notification settings - Fork 276
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
jsonrpc-core should support io::Read and io::Write #82
Comments
yes, but I'm afraid it won't work for network requests, cause What we need is serde using futures internally |
I think it would be possible to create a buffered reader that addresses this issue. You just need to make sure that BufferedReader polling occurs in the event loop, and |
Hey guys maybe you need tokio_io::{AsyncRead, AsyncWrite} |
@mmacedoeu yep but serde does not use it |
Now I see :) or try FramedRead, FramedWrite: for json: |
Closing since it seems unrealistic. |
Instead of allocating a String and then passing it to
jsonrpc-core
it should be possible to just pass instance ofio::Read
andio::Write
(later). See:https://docs.rs/serde_json/0.9.5/serde_json/fn.from_reader.html
https://docs.rs/serde_json/0.9.5/serde_json/fn.to_writer.html
The text was updated successfully, but these errors were encountered: