Tokio-alpha Framed incompatibility with async std

Framed requires that the traits AsyncRead and AsyncWrite are implemented for its stream-input. Is there currently a way of doing this in a compatible way?

This is probably due to tokio shipping its own AsyncRead and AsyncWrite traits, and framed expects those.

You can use the futures-codec crate.

https://crates.io/crates/futures_codec

Just know that the author is supposed to release a new version, and promised to do that ASAP, but 0.2.5 has a bug, so for now I add a patch section to cargo.toml that takes the master branch from the git repo.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.