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 committed May 5, 2022
1 parent e0642d9 commit 3faba7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing-subscriber/Cargo.toml
Expand Up @@ -25,7 +25,7 @@ rust-version = "1.49.0"
[features]

default = ["smallvec", "fmt", "ansi", "tracing-log", "std"]
alloc = []
alloc = ["tracing-core/alloc"]
std = ["alloc", "tracing-core/std"]
env-filter = ["matchers", "regex", "lazy_static", "tracing", "std", "thread_local"]
fmt = ["registry", "std"]
Expand All @@ -37,7 +37,7 @@ json = ["tracing-serde", "serde", "serde_json"]
local-time = ["time/local-offset"]

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

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

0 comments on commit 3faba7b

Please sign in to comment.