6 ms·
While it's not official, rusti[1] by murarth is a functioning Rust REPL. IIRC, it's used to drive the Rust Playground[2] (don't quote me on that). [1]: https:/
by indiv0 11y ago
While it's not official, rusti[1] by murarth is a functioning Rust REPL. IIRC, it's used to drive the Rust Playground[2] (don't quote me on that).
[1]: https://github.com/murarth/rusti https://github.com/murarth/rusti
[2]: https://play.rust-lang.org/ https://play.rust-lang.org/
- tatterdemalion 11y agoRusti isn't 'there yet,' unfortunately. It is forced to recompile the entire project for every line entered. Aa far as I know I also can't do things like set 'breakpoints' that will pause execution and drop me into the REPL, like Ruby's binding.pry. This is a very hard feature for compiled languages, its just a con of this execution model (which is has a lot of pros).
- kibwen 11y agoI believe the playground is just a well-sandboxed Rust compiler. It doesn't have any of the fancy features of a REPL, such as allowing you to refer to the state of prior runs.