Skip to content

Commit

Permalink
fix visibility of server features
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed Oct 8, 2023
1 parent 9b92208 commit ac3b387
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit ac3b387

Please sign in to comment.