tracing: switch to unstable for 1.0. (#3266)

Enabling `tracing` integration now requires compiling with `--cfg
tokio_unstable`. Once `tracing-core` guarantees the same level of
stability as Tokio 1.0, unstable can be removed.

Closes #3258
This commit is contained in:
Carl Lerche
2020-12-14 17:22:31 -08:00
committed by GitHub
parent 3f29212cb7
commit 79d25b0a48
5 changed files with 18 additions and 7 deletions
+4
View File
@@ -102,6 +102,10 @@ mio = { version = "0.7.6", optional = true }
num_cpus = { version = "1.8.0", optional = true }
parking_lot = { version = "0.11.0", optional = true }
slab = { version = "0.4.1", optional = true }
# 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]
tracing = { version = "0.1.21", default-features = false, features = ["std"], optional = true } # Not in full
[target.'cfg(unix)'.dependencies]