aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-04-09 12:32:01 +0200
committerMartin Fischer <martin@push-f.com>2021-04-09 12:49:02 +0200
commit9df4a6c0b55b2e680eca4e89489ad4c684bfb127 (patch)
tree9d95f03bd52509bb29b76ad9ed21f3d796272619 /src/lib.rs
parentbfeddf5d15ddaa9937ceeba04678ad6c4a4e8aea (diff)
make hyper dependency optional
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2f30028..760acf1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,4 +9,12 @@ pub use httpdate;
pub mod security;
pub mod request;
pub mod response;
-mod signed; \ No newline at end of file
+mod signed;
+#[cfg(feature="hyper_body")]
+#[cfg_attr(docsrs, doc(cfg(feature = "hyper_body")))]
+pub mod hyper_body;
+
+#[cfg(not(feature="hyper_body"))]
+use http;
+#[cfg(feature="hyper_body")]
+use hyper::http; \ No newline at end of file