[Merged by Bors] - Add feature flag to enable wasm for bevy_audio#2397
[Merged by Bors] - Add feature flag to enable wasm for bevy_audio#2397Ixentus wants to merge 3 commits intobevyengine:mainfrom
Conversation
Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
|
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 🙂 |
|
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.