3 ms·
The general workflow with Rust is $ git clone <foo> $ cd <foo> $ cargo run With something like this, you might want to also use https://github.com
by steveklabnik 11y ago
The general workflow with Rust is
$ git clone <foo>
$ cd <foo>
$ cargo run
With something like this, you might want to also use https://github.com/passcod/cargo-watch https://github.com/passcod/cargo-watch , which, after installing it, changes that last line to
$ cargo watch
and then it will recompile when you change a file, automatically.
I haven't been able to test that this project works exactly this way because it looks like they're on an older nightly than I have on my machine, but it looks like that's all you need.
- brson 11y agoI will be amazed if true! Last time I looked at the emscripten-Rust stack it was a tower of hacks and required a custom-hacked standard library. If that's all abstracted behind cargo build scripts that's awesome, but we're still a ways from having this be elegantly integrated into the Rust system. It's going to improve rapidly though.
- steveklabnik 11y agoI think it's gotten better due to recent LLVM changes in emscripten, last I heard, but maybe maybe not. Can't wait until it's just trivial.