-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] - Add feature flag to enable wasm for bevy_audio #2397
Conversation
Co-authored-by: MinerSebas <[email protected]>
Is there anything left to do before merging this? I've been happily listening to audio on web for weeks now :) |
it needs another approval 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you.
bors r+ |
Exposes Rodio feature flag to enable WASM support. Note that mp3 doesn't currently work on wasm.
Is there a reason to not enable this by default? Rather than adding another cargo feature, maybe we should just selectively enable the "rodio/wasm-bindgen" when building bevy_audio for wasm? |
cargo doesn't support per target feature: rust-lang/cargo#1197 |
Ah yeah. Maybe we should start considering a move to "feature resolver v2" now that its stable? |
Pull request successfully merged into main. Build succeeded: |
The resolver v2 is not something we can enable for consumers of Bevy, they would have to enable it in their project. We should mention it in all the docs, and it's something additional to do when starting with Bevy... and all existing projects would need to update |
Arg thats annoying. I guess we'll just need to wait for Rust 2021 to make it the default. |
Exposes Rodio feature flag to enable WASM support. Note that mp3 doesn't currently work on wasm.
Exposes Rodio feature flag to enable WASM support.
Note that mp3 doesn't currently work on wasm.