Index: Cargo.toml ================================================================== --- Cargo.toml +++ Cargo.toml @@ -1,8 +1,8 @@ [package] name = "protwrap" -version = "0.2.1" +version = "0.2.2" edition = "2021" license = "0BSD" categories = [ "asynchronous", "network-programming" ] keywords = [ "network", "wrapper" ] repository = "https://repos.qrnch.tech/pub/protwrap" Index: src/lib.rs ================================================================== --- src/lib.rs +++ src/lib.rs @@ -1,8 +1,8 @@ #![cfg_attr(docsrs, feature(doc_cfg))] -#[cfg(feature = "tok")] +#[cfg(feature = "tokio")] #[cfg_attr(docsrs, doc(cfg(feature = "tokio")))] pub mod tokio; use std::fmt; use std::str::FromStr; Index: src/tokio.rs ================================================================== --- src/tokio.rs +++ src/tokio.rs @@ -5,14 +5,14 @@ use std::os::unix::fs::FileTypeExt; #[cfg(unix)] use std::path::Path; -use tok::net::{TcpListener, TcpStream}; +use tokio::net::{TcpListener, TcpStream}; #[cfg(unix)] -use tok::net::{UnixListener, UnixStream}; +use tokio::net::{UnixListener, UnixStream}; #[cfg(unix)] use tokio_util::either::Either; #[cfg(unix)] @@ -66,15 +66,15 @@ #[derive(Debug)] pub enum SockAddr { Std(std::net::SocketAddr), #[cfg(unix)] - TokioUnix(tok::net::unix::SocketAddr) + TokioUnix(tokio::net::unix::SocketAddr) } impl Listener { - pub async fn accept(&self) -> Result<(Stream, SockAddr), tok::io::Error> { + pub async fn accept(&self) -> Result<(Stream, SockAddr), tokio::io::Error> { match self { #[cfg(unix)] Listener::Unix(u) => { let (stream, sa) = u.accept().await?; Index: www/changelog.md ================================================================== --- www/changelog.md +++ www/changelog.md @@ -6,10 +6,16 @@ ### Changed ### Removed +## [0.2.2] - 2023-10-03 + +### Changed + +- Fix fallout after earlier feature/dependency rename. + --- ## [0.2.1] - 2023-10-03 ### Changed