httproxide_hyperlocal/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` 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 [`UnixClientExt`] docs for
13//! how to configure clients.
14//!
15//! See the
16//! [`UnixServerExt`] docs for how to
17//! configure servers.
18//!
19//! The [`UnixConnector`] can be used in the [`hyper::Client`] builder
20//! interface, if required.
21//!
22//! # Features
23//!
24//! - Client- enables the client extension trait and connector. *Enabled by
25//! default*.
26//!
27//! - Server- enables the server extension trait. *Enabled by default*.
28
29#[cfg(feature = "client")]
30mod client;
31#[cfg(feature = "client")]
32pub use client::{UnixClientExt, UnixConnector, UnixStream};
33
34#[cfg(feature = "server")]
35mod server;
36#[cfg(feature = "server")]
37pub use server::UnixServerExt;
38
39mod uri;
40pub use uri::Uri;
41
42#[cfg(feature = "server")]
43pub use crate::server::conn::SocketIncoming;