From a368a93e1f217cd38a0fe52456b4ab03008d75d4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 27 Dec 2019 04:17:07 +0100 Subject: Re-export hyper::Uri as shiplift::Uri (#209) This patch removes the explicit dependency on the http crate and instead accesses the re-exported version of hyper. This should make the update process slightly easier because those versions would need to be kept in sync manually. We also re-export hyper::Uri as shiplift::Uri because it is part of the public API of shiplift::Docker. This allows users to access the Uri type without having to seperately depend on http or hyper. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index f96915a..14ed170 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,8 @@ use crate::{ tty::TtyDecoder, }; use futures::{future::Either, Future, IntoFuture, Stream}; -use hyper::{client::HttpConnector, Body, Client, Method, Uri}; +pub use hyper::Uri; +use hyper::{client::HttpConnector, Body, Client, Method}; #[cfg(feature = "tls")] use hyper_openssl::HttpsConnector; #[cfg(feature = "unix-socket")] -- cgit v1.2.3