From 17d644181a9ccbe6f097619578540dbaebb8ab26 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sat, 10 Oct 2020 11:45:00 +0200 Subject: [PATCH] Fix building with no default features --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 1d0e84b..ba7ff1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,7 @@ pub mod error; pub mod message; pub mod transport; +#[cfg(feature = "builder")] #[macro_use] extern crate hyperx; @@ -150,6 +151,7 @@ impl Envelope { } } +#[cfg(feature = "builder")] impl TryFrom<&Headers> for Envelope { type Error = Error;