Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why no `cargo run`?


I'm used to doing stuff with WebAssembly, that is beyond the reach of `cargo run` most of the time.


Actually even for wasm you can make `cargo run` work. You just need to write a script for it and use it as the target runner. Especially for WASI this is great where you can just specify wasmtime as the runner and then cargo test / bench / run all work perfectly fine.


I was actually just searching for this the other day but couldn’t quite figure it out. Do you have any guides on doing just this? Thanks!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: