hyperlocal_v07/lib.rs
1#![deny(
2 missing_debug_implementations,
3 unreachable_pub,
4 rust_2018_idioms,
5 missing_docs
6)]
7
8//! `hyperlocal` provides [Hyper](http://github.com/hyperium/hyper) bindings
9//! for [Unix domain sockets](https://github.com/tokio-rs/tokio/tree/master/tokio-net/src/uds/).
10//!
11//! See the [`UnixClientExt`] docs for
12//! how to configure clients.
13//!
14//! See the
15//! [`UnixServerExt`] docs for how to
16//! configure servers.
17//!
18//! The [`UnixConnector`] can be used in the [`hyper::Client`] builder
19//! interface, if required.
20//!
21//! # Features
22//!
23//! - Client- enables the client extension trait and connector. *Enabled by
24//! default*.
25//!
26//! - Server- enables the server extension trait. *Enabled by default*.
27
28#[cfg(feature = "client")]
29mod client;
30#[cfg(feature = "client")]
31pub use client::{UnixClientExt, UnixConnector};
32
33#[cfg(feature = "server")]
34mod server;
35#[cfg(feature = "server")]
36pub use server::UnixServerExt;
37
38mod uri;
39pub use uri::Uri;
40
41pub use crate::server::conn::SocketIncoming;