Open
Description
Currently, tracing-subscriber-wasm
is already fairly light on dependencies (only 3), but it could be a lot lighter in transitive dependencies.
It seems like you're pulling in gloo
for only these lines of code:
tracing_subscriber_wasm/src/lib.rs
Lines 158 to 173 in 82b3a95
But because you're using gloo
with all default features:
tracing_subscriber_wasm/Cargo.toml
Lines 17 to 18 in 82b3a95
You're pulling in other things like gloo-timers
, gloo-render
etc. in, too.
Some good options might be
- turning off default feature flags on
gloo
, and only turning on theconsole
feature flag - replacing the
gloo
dependency withgloo-console
- replacing the
gloo
dependency with custom wasm-bindgen bindings to the globalconsole
object (essentially vendoring the code needed fromgloo-console
)
The first two options might be the best ones from an effort/payoff perspective.
Metadata
Metadata
Assignees
Labels
No labels