Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 3 additions & 4 deletions src/aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);*) => {
Expand Down Expand Up @@ -55,4 +55,3 @@ gen! {
read_u128, "`u128`", u128, u128_buffer;
read_usize, "`usize`", usize, usize_buffer
}