diff --git a/examples/headers.rs b/examples/headers.rs index 65f943d870..24e5301f27 100644 --- a/examples/headers.rs +++ b/examples/headers.rs @@ -4,6 +4,9 @@ // TODO: only import header!, blocked by https://github.com/rust-lang/rust/issues/25003 extern crate hyper; +#[cfg(feature = "serde-serialization")] +extern crate serde; + // A header in the form of `X-Foo: some random string` header! { (Foo, "X-Foo") => [String]