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]