You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the tracing-subscriber crate unconditionally depends on the tracing-core crate, which has a default feature set of ["std"]. This can be seen here.
This means that despite including both crates with default-features = false, the std feature is still enabled.
I'm working on getting tracing v0.2 working on an MCU platform, and this would be a problem. I may not actually need the tracing-subscriber crate (still learning), but I was surprised when I had access to std methods in tracing-core, specifically Dispatch::new().
The fix for this may be as simple as changing that dependency to include default-features = false, and propagating the std feature through when selected, but I'm not sure how to test that would be sufficient. I'll probably give it a go and see what CI thinks.
The text was updated successfully, but these errors were encountered:
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
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
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
Bug Report
Version
Current head of the
master
branchPlatform
N/A
Crates
tracing-subscriber, tracing-core
Description
Currently, the
tracing-subscriber
crate unconditionally depends on thetracing-core
crate, which has a default feature set of["std"]
. This can be seen here.This means that despite including both crates with
default-features = false
, thestd
feature is still enabled.I'm working on getting tracing v0.2 working on an MCU platform, and this would be a problem. I may not actually need the
tracing-subscriber
crate (still learning), but I was surprised when I had access tostd
methods intracing-core
, specificallyDispatch::new()
.The fix for this may be as simple as changing that dependency to include
default-features = false
, and propagating thestd
feature through when selected, but I'm not sure how to test that would be sufficient. I'll probably give it a go and see what CI thinks.The text was updated successfully, but these errors were encountered: