dimforge / parry

2D and 3D collision-detection library for Rust.
https://parry.rs
Apache License 2.0
534 stars 93 forks source link

wasm32-unknown-emscripten does not output wasm files #91

Closed 1226085293 closed 1 year ago

1226085293 commented 1 year ago

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

sebcrozet commented 1 year ago

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.

1226085293 commented 1 year ago

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

sebcrozet commented 1 year ago

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