From 2c6150d808a8e5604e6753c3f432417b805c3c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Froissart?= Date: Fri, 29 Oct 2021 11:37:51 +0200 Subject: [PATCH] A cargo dependency is no longer conditionnal Works around https://github.com/rust-lang/cargo/issues/6858 --- tokio/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 3b685e2e9c3..00bf7b7ddf3 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -113,7 +113,11 @@ socket2 = { version = "0.4.4", optional = true, features = [ "all" ] } # Currently unstable. The API exposed by these features may be broken at any time. # Requires `--cfg tokio_unstable` to enable. -[target.'cfg(tokio_unstable)'.dependencies] +# +# +# We're not gating this create behind a cfg flag (defined in a [target.cfg(...)], because cargo would not know it before actually invoking rustc) +# See https://github.com/rust-lang/cargo/issues/6858 +# [target.'cfg(tokio_unstable)'.dependencies] tracing = { version = "0.1.25", default-features = false, features = ["std"], optional = true } # Not in full [target.'cfg(unix)'.dependencies]