Open Praying opened 1 week ago
Hi @Praying. The codec interface should work with Tokio, but from this code it's not obvious what the issue is. I won't be able to reproduce this due to the references to your other crate types though.
Here's an example of the tests that use Tokio: https://github.com/aembke/redis-protocol.rs/blob/main/tests/codec/mod.rs
@aembke It seems works with
tokio-util = { version = "0.7.12", features = ["codec"] }
but not work with
tokio-util = { version = "0.6", features = ["codec"] }
I write code as this, but it got error as the follow, so I want to known how use this crate in tokio ?