jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

Don't set bevy_egui feature manage_clipboard on by default #209

Closed mpwoz closed 3 weeks ago

mpwoz commented 1 month ago

https://github.com/jakobhellermann/bevy-inspector-egui/blob/2e3e5ed3a3bdbaff974c7a8f08c3d072a20449c8/crates/bevy-inspector-egui/Cargo.toml#L44-L46

error: bevy_egui uses unstable APIs to support clipboard on web.

       Please add `--cfg=web_sys_unstable_apis` to your rustflags or disable the `bevy_egui::manage_clipboard` feature.

       More Info: https://rustwasm.github.io/wasm-bindgen/web-sys/unstable-apis.html

This makes it hard to use this (very useful!) crate when building for wasm unless the unstable apis flag is added to config.toml, but that'll break github actions CI. Would it be possible not to override these features in the bevy_egui crate?

Apologies if this is impossible, feel free to close if that's the case

jakobhellermann commented 1 month ago

hm, has that always been the case with bevy_egui default features as well? I thought it worked previously but maybe it just wasn't enabled