Skip to content

Commit

Permalink
put client and server extensions behind feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Dec 26, 2019
1 parent b711163 commit 8c8b7fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ futures-util = "0.3.1"

[dev-dependencies]
tokio = { version = "0.2.6", features = ["uds", "stream", "macros"]}

[features]
client = []
server = []
default = ["client", "server"]
11 changes: 10 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![deny(missing_debug_implementations, unreachable_pub, rust_2018_idioms, missing_docs)]
#![deny(
missing_debug_implementations,
unreachable_pub,
rust_2018_idioms,
missing_docs
)]

//! `hyperlocal` provides [Hyper](http://github.com/hyperium/hyper) bindings
//! for [Unix domain sockets](https://github.com/tokio-rs/tokio/tree/master/tokio-net/src/uds/).
Expand All @@ -8,10 +13,14 @@
//! [`hyperlocal::UnixServerExt`](crate::server::UnixServerExt) docs for how to
//! configure servers.

#[cfg(feature = "client")]
mod client;
#[cfg(feature = "client")]
pub use client::UnixConnector;

#[cfg(feature = "server")]
mod server;
#[cfg(feature = "server")]
pub use server::UnixServerExt;

mod uri;
Expand Down

0 comments on commit 8c8b7fd

Please sign in to comment.