mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

repo does not compile anymore #56

Closed SylvestreG closed 2 years ago

SylvestreG commented 2 years ago

Hi,

When I try on apple m1 to compile the repository with this command :

cargo make

I've got this :

[cargo-make] INFO - cargo make 0.35.6
[cargo-make] INFO - Project: bevy_webgl2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: default
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Execute Command: "cargo" "fmt"
[cargo-make] INFO - Execute Command: "cargo" "build" "--all-features"
   Compiling bevy_log v0.5.0
error[E0277]: the trait bound `WASMLayer: __tracing_subscriber_Layer<Layered<EnvFilter, Registry>>` is not satisfied
  --> /Users/syl/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_log-0.5.0/src/lib.rs:92:46
   |
92 |               let subscriber = subscriber.with(tracing_wasm::WASMLayer::new(
   |  ______________________________________________^
93 | |                 tracing_wasm::WASMLayerConfig::default(),
94 | |             ));
   | |_____________^ the trait `__tracing_subscriber_Layer<Layered<EnvFilter, Registry>>` is not implemented for `WASMLayer`

error[E0277]: the trait bound `WASMLayer: __tracing_subscriber_Layer<Layered<EnvFilter, Registry>>` is not satisfied
  --> /Users/syl/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_log-0.5.0/src/lib.rs:95:65
   |
95 |             bevy_utils::tracing::subscriber::set_global_default(subscriber)
   |                                                                 ^^^^^^^^^^ the trait `__tracing_subscriber_Layer<Layered<EnvFilter, Registry>>` is not implemented for `WASMLayer`
   | 
  ::: /Users/syl/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.29/src/subscriber.rs:41:8
   |
41 |     S: Subscriber + Send + Sync + 'static,
   |        ---------- required by this bound in `bevy_utils::tracing::subscriber::set_global_default`
   |
   = note: required because of the requirements on the impl of `bevy_utils::tracing::Subscriber` for `Layered<WASMLayer, Layered<EnvFilter, Registry>>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `bevy_log` due to 2 previous errors
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.

Does I miss something ?

Thanks for your help.

SylvestreG commented 2 years ago

sorry its not your fault :

https://github.com/bevyengine/bevy/issues/3099

I am closing this issue