From ce0e1152ad7ddd32f1c1885e42fca78ac57055c9 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sat, 14 May 2022 18:55:26 +0200 Subject: [PATCH] util: display `JoinMap` on docs.rs (#4689) --- tokio-util/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 992ff234a..ed6f91a34 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -58,4 +58,8 @@ futures-test = "0.3.5" [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] +# enable unstable features in the documentation +rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"] +# it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else +# dependencies will not be enabled, and the docs build will fail. +rustc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]