Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracing: switch to unstable for 1.0. #3266

Merged
merged 5 commits into from Dec 15, 2020
Merged

tracing: switch to unstable for 1.0. #3266

merged 5 commits into from Dec 15, 2020

Conversation

carllerche
Copy link
Member

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

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
@carllerche carllerche added this to the v1.0 milestone Dec 13, 2020
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-tracing Tracing support in Tokio labels Dec 13, 2020
@Darksonn
Copy link
Contributor

You should also update lib.rs. See also #3254.

@carllerche
Copy link
Member Author

Done!

tokio/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Alice Ryhl <alice@ryhl.io>
@@ -102,6 +102,9 @@ 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 version of tracing-core may be changed at any time.
# Requires `--cfg tokio_unstable` to enable in Tokio.
tracing = { version = "0.1.21", default-features = false, features = ["std"], optional = true } # Not in full
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth moviung this to [target.'cfg(tokio_unstable)'.dependencies] so it's not downloaded when the cfg isn't set?

@carllerche carllerche merged commit 79d25b0 into master Dec 15, 2020
@carllerche carllerche deleted the tracing-unstable branch December 15, 2020 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-tracing Tracing support in Tokio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: switch tracing integration to unstable
3 participants