diff --git a/Cargo.toml b/Cargo.toml index 10aceac62..69d7df4c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,6 @@ serde_derive = "1.0" [features] default = [] hyper-011 = ["hyper-old-types"] + +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "docs_rs_workaround"] diff --git a/src/lib.rs b/src/lib.rs index d4b26b32a..4643894aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,7 @@ #![deny(warnings)] #![deny(missing_docs)] #![deny(missing_debug_implementations)] +#![cfg_attr(docs_rs_workaround, feature(extern_prelude))] #![doc(html_root_url = "https://docs.rs/reqwest/0.8.6")] //! # reqwest