diff --git a/Cargo.toml b/Cargo.toml index 65845f1..13d3d4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,12 @@ event-listener = "3.0.0" futures-lite = "1.11.0" [target.'cfg(unix)'.dependencies] -async-io = "1.8" +async-io = "2.1.0" async-signal = "0.2.3" rustix = { version = "0.38", default-features = false, features = ["std", "fs"] } [target.'cfg(windows)'.dependencies] -async-channel = "1.9.0" +async-channel = "2.0.0" blocking = "1.0.0" [target.'cfg(windows)'.dependencies.windows-sys] @@ -39,4 +39,4 @@ features = [ [dev-dependencies] async-executor = "1.5.1" -async-io = "1.8" +async-io = "2.1.0" diff --git a/src/lib.rs b/src/lib.rs index 19b094a..4804a1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -320,7 +320,7 @@ cfg_if::cfg_if! { } /// Wrap a file descriptor into a non-blocking I/O type. - fn wrap(io: T) -> io::Result> { + fn wrap(io: T) -> io::Result> { Async::new(io) } }