tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.39k stars 707 forks source link

tracing-core: Do not add `valuable/std` feature as dependency unless … #3002

Closed mladedav closed 3 months ago

mladedav commented 3 months ago

Motivation

tracing-core adds a dependency on valuable anytime the std (or default) feature is enabled even when valuable is not meant to be used. This was pointed out by this comment.

Solution

Only add the feature dependency when something enables valuable.

This does not apply to master as valuable support there is always on.