From ac3b3874aa593148b84c743aefe46f434214868b Mon Sep 17 00:00:00 2001 From: koe Date: Sun, 8 Oct 2023 01:08:23 -0500 Subject: [PATCH] fix visibility of server features --- src/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fba09bb..3580033 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,13 +5,8 @@ //! //! Refer to [`client`] or [`server`] module for detailed implementation guides. -mod client_connectors; -mod server_runners; mod socket; -pub use client_connectors::*; -pub use server_runners::*; - pub use socket::CloseCode; pub use socket::CloseFrame; pub use socket::Message; @@ -26,6 +21,9 @@ pub use socket::Stream; cfg_if::cfg_if! { if #[cfg(feature = "client")] { pub mod client; + mod client_connectors; + + pub use client_connectors::*; pub use client::connect; pub use client::connect_with; @@ -39,6 +37,9 @@ cfg_if::cfg_if! { if #[cfg(feature = "server")] { pub mod server; pub mod session; + mod server_runners; + + pub use server_runners::*; pub use server::Server; pub use server::ServerExt;