Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mpwoz opened this issue Jul 21, 2024 · 1 comment · Fixed by #210
Closed

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

mpwoz opened this issue Jul 21, 2024 · 1 comment · Fixed by #210

Comments

@mpwoz
Copy link

mpwoz commented Jul 21, 2024

bevy_egui = { version = "0.28", default-features = false, features = [
"manage_clipboard", "open_url"
] }

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants