Skip to content

Commit

Permalink
subscriber: don't enable tracing-core features by default (#2107)
Browse files Browse the repository at this point in the history
This attempts to address #2106 by disabling the `tracing-core`
crate's default features in `tracing-subscriber`'s dependency.
Now, `tracing-core`'s optional "alloc" feature is only enabled
when "tracing-subscriber/alloc" is enabled.

Closes #2106
  • Loading branch information
jamesmunns authored and hawkw committed Jun 7, 2022
1 parent 6c9bc9b commit 1fbf90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-subscriber/Cargo.toml
Expand Up @@ -38,7 +38,7 @@ valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracin
local-time = ["time/local-offset"]

[dependencies]
tracing-core = { path = "../tracing-core", version = "0.1.22" }
tracing-core = { path = "../tracing-core", version = "0.1.22", default-features = false }

# only required by the filter feature
tracing = { optional = true, path = "../tracing", version = "0.1", default-features = false }
Expand Down

0 comments on commit 1fbf90a

Please sign in to comment.