make and util: enable optional features for docs.rs

This commit is contained in:
Sean McArthur 2019-12-16 11:57:48 -08:00
parent 2dc9a72bea
commit fec0042eea
2 changed files with 6 additions and 0 deletions

View File

@ -19,3 +19,6 @@ connect = ["tokio"]
[dependencies]
tower-service = "0.3"
tokio = { version = "0.2", optional = true }
[package.metadata.docs.rs]
features = ["connect"]

View File

@ -39,3 +39,6 @@ tokio-test = "0.2"
tokio = { version = "0.2", features = ["stream", "sync", "macros"] }
tower = { version = "0.3", path = "../tower" }
tower-test = { version = "0.3", path = "../tower-test" }
[package.metadata.docs.rs]
features = ["call-all"]