From c3029d640d5091caf28b01c7a3437204164434bd Mon Sep 17 00:00:00 2001 From: Ilya Trefilov Date: Tue, 15 Feb 2022 22:53:20 +0300 Subject: [PATCH] docs(client): Add tcp feature for Client::new docs added cfg attr to denote required tcp feature in docs for Client::new method Closes: #2759 --- src/client/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/client.rs b/src/client/client.rs index 112a5af806..cfdd267a11 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -59,6 +59,7 @@ impl Client { /// The default connector does **not** handle TLS. Speaking to `https` /// destinations will require [configuring a connector that implements /// TLS](https://hyper.rs/guides/client/configuration). + #[cfg_attr(docsrs, doc(cfg(feature = "tcp")))] #[inline] pub fn new() -> Client { Builder::default().build_http()