hyperlocal_with_windows/
lib.rs

1#![deny(
2    missing_debug_implementations,
3    unreachable_pub,
4    rust_2018_idioms,
5    missing_docs
6)]
7#![warn(clippy::all, clippy::pedantic)]
8
9//! `hyperlocal-with-windows` provides [Hyper](http://github.com/hyperium/hyper) bindings
10//! for [Unix domain sockets](https://github.com/tokio-rs/tokio/tree/master/tokio-net/src/uds/).
11//!
12//! See the examples for how to configure a client or a server.
13//!
14//! # Features
15//!
16//! - Client- enables the client extension trait and connector. *Enabled by
17//!   default*.
18//!
19//! - Server- enables the server extension trait. *Enabled by default*.
20
21#[cfg(feature = "client")]
22#[cfg_attr(windows, path = "client_windows.rs")]
23mod client;
24#[cfg(feature = "client")]
25pub use client::{UnixClientExt, UnixConnector, UnixStream};
26
27#[cfg(feature = "server")]
28#[cfg_attr(windows, path = "server_windows.rs")]
29mod server;
30#[cfg(feature = "server")]
31pub use server::{CommonUnixListener, UnixListenerExt};
32
33#[cfg(feature = "server")]
34mod server_helpers;
35#[cfg(feature = "server")]
36pub use server_helpers::remove_unix_socket_if_present;
37
38#[cfg(all(windows, any(feature = "client", feature = "server")))]
39mod windows;
40
41mod uri;
42
43pub use uri::Uri;