Open elton-cs opened 2 months ago
@glihm @Larkooo would love some help to at least get a temporary patch on this issue for the game jam if possible haha 🙏
Please can I be assigned to this issue ?
Hello @elton-cs can i work on this?
@glihm @Larkooo looks like there was a fix recently to handle this issue. Updating all the libp2p related dependencies in torii-libp2p's Cargo.toml to the appropriate commit above allows rust/bevy to now run compile and run on wasm when importing the torii-client crate.
As for temporary fixes go, I'm currently using a fork of v1-alpha.11 where I just updated the 5 related deps, which you can view here. I'm hoping these changes don't affect the rest of torii tho 🤞
@elton-cs is still relevant or fixed recent merges?
Describe the bug Bevy app will not compile when targeting wasm if
torii-client
is importedTo Reproduce
cargo new {example_project}
cargo add bevy
main.rs
:fn main() { App::new().add_plugins(DefaultPlugins).run(); }
[dependencies] bevy = "0.14.0" torii-client = { git = "https://github.com/dojoengine/dojo.git" }
[patch.crates-io] starknet-core = { git = "https://github.com/kariy/starknet-rs", branch = "dojo-patch" }