diff --git a/Cargo.toml b/Cargo.toml index 7f066ac..25c83b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ futures-util = { version = "0.3.4", features = ["io"], optional = true } asynchronous-codec = { version = "0.6", optional = true } tokio-util = { version = "0.6", features = ["codec"], optional = true } nom = { version = "7", optional = true } +tokio = { version = "1.20.1" } [dev-dependencies] criterion = "0.3" diff --git a/src/aio.rs b/src/aio.rs index 55709e4..77a4971 100644 --- a/src/aio.rs +++ b/src/aio.rs @@ -17,12 +17,12 @@ // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -//! Decode using [`futures_io::AsyncRead`] types. +//! Decode using [`tokio::io::AsyncRead`] types. use crate::{decode, encode, io::ReadError}; -use futures_io::AsyncRead; -use futures_util::io::AsyncReadExt; use std::io; +use tokio::io::AsyncRead; +use tokio::io::AsyncReadExt; macro_rules! gen { ($($name:ident, $d:expr, $t:ident, $b:ident);*) => { @@ -55,4 +55,3 @@ gen! { read_u128, "`u128`", u128, u128_buffer; read_usize, "`usize`", usize, usize_buffer } -