johanhelsing / matchbox

Painless peer-to-peer WebRTC networking for rust wasm (and native!)
Apache License 2.0
864 stars 70 forks source link

Add missing `env-filter` feature for signaling examples #360

Closed johanhelsing closed 10 months ago

johanhelsing commented 10 months ago

Previously, running cargo run --example client_server from within matchbox_signaling would result in

   Compiling matchbox_signaling v0.7.0 (C:\Users\Johan\dev\matchbox\matchbox_signaling)
error[E0433]: failed to resolve: could not find `EnvFilter` in `tracing_subscriber`
  --> matchbox_signaling\examples\client_server.rs:29:33
   |
29 |             tracing_subscriber::EnvFilter::try_from_default_env()
   |                                 ^^^^^^^^^ could not find `EnvFilter` in `tracing_subscriber`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `matchbox_signaling` (example "client_server") due to previous error