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

[Merged by Bors] - enable wasm-bindgen feature on gilrs #3420

Closed

Conversation

jakobhellermann
Copy link
Contributor

WIthout the feature, gilrs uses stdweb instead of wasm-bindgen which isn't compatible with the rest of bevy.

Unfortunately, the stdweb dependency is still in the dependency tree, it just isn't used (https://gitlab.com/gilrs-project/gilrs/-/issues/101). This will be fixed in gilrs 0.9 when it releases.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Dec 23, 2021
@mockersf
Copy link
Member

should this feature only be enabled when target is wasm?

@jakobhellermann
Copy link
Contributor Author

should this feature only be enabled when target is wasm?

No, gilrs only depends on web-sys when the target arch is wasm32: https://gitlab.com/gilrs-project/gilrs/-/blob/master/gilrs-core/Cargo.toml#L38-41

@jakobhellermann jakobhellermann added A-Input Player input via keyboard, mouse, gamepad, and more O-Web Specific to web (WASM) builds and removed S-Needs-Triage This issue needs to be labelled labels Dec 23, 2021
Copy link
Contributor

@Ixentus Ixentus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that although it builds with wasm, it usually can't find controllers (although it works when it does). See https://gitlab.com/gilrs-project/gilrs/-/issues/107

The PR looks good though

@cart
Copy link
Member

cart commented Dec 23, 2021

bors r+

bors bot pushed a commit that referenced this pull request Dec 23, 2021
WIthout the feature, `gilrs` uses `stdweb` instead of `wasm-bindgen` which isn't compatible with the rest of bevy.

Unfortunately, the `stdweb` dependency is still in the dependency tree, it just isn't used (https://gitlab.com/gilrs-project/gilrs/-/issues/101). This will be fixed in `gilrs 0.9` when it releases.
@bors bors bot changed the title enable wasm-bindgen feature on gilrs [Merged by Bors] - enable wasm-bindgen feature on gilrs Dec 23, 2021
@bors bors bot closed this Dec 23, 2021
@jakobhellermann jakobhellermann deleted the gilrs-wasm-bindgen branch December 23, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more O-Web Specific to web (WASM) builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants