From 48961fac89509c88229f7f1454cab9145e8ecee4 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 14 Dec 2020 10:28:36 -0500 Subject: [PATCH] Document `SinkExt` and other futures traits on docs.rs (#3271) These are extremely hard to find if you don't already know they exist. --- tokio-util/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index f06bc0bae..e567912ae 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -34,6 +34,8 @@ time = ["tokio/time","slab"] io = [] rt = ["tokio/rt"] +__docs_rs = ["futures-util"] + [dependencies] tokio = { version = "1.0.0", path = "../tokio" } @@ -41,6 +43,7 @@ bytes = "0.6.0" futures-core = "0.3.0" futures-sink = "0.3.0" futures-io = { version = "0.3.0", optional = true } +futures-util = { version = "0.3.0", optional = true } log = "0.4" pin-project-lite = "0.2.0" slab = { version = "0.4.1", optional = true } # Backs `DelayQueue`