dimforge/parry

wasm32-unknown-emscripten does not output wasm files

1226085293 opened this issue · 3 comments

Hi, I'm a web developer, I don't know rust language, I got only .rlib and .d files after executing cargo build --target wasm32-unknown-emscripten command, no .wasm and .js files, please What should I do? ---- from translation software

Hi! parry itself doesn’t export any wasm functions. So you’d need to write an interface in Rust for the functions you want to use, and export them with wasm-bindgen.

Hi! parry itself doesn’t export any wasm functions. So you’d need to write an interface in Rust for the functions you want to use, and export them with wasm-bindgen.

Well, I gave up, it's not friendly to non-rust developers

Yeah, unlike rapier there hasn’t been any work towards making parry easily usable from JS.