3 ms·
Rust-script – Run Rust files and expressions as scripts without any setup or co
- brundolf 6y agoVery cool. The way of adding dependencies is a little janky, but it gets the job done and I'm not sure how else to do it.
- rmdashrfstar 6y agoHow is this different from xshell? https://github.com/matklad/xshell https://github.com/matklad/xshell
- josteink 6y agoFrom a superficial look, I would argue xshell is all about bringing shell-ergonomics into your rust-code, while your rust program maintains its traditional form. rust-script seems to do nothing about your general rust-code, but make it more easily accessible in a (bash) shell-like context by altering the base form of your program to be more script-like. They seem to complement each other really, and I don’t see why one would choose one over the other, as they apparently solve different problems. One might even use both at the same time?
- ibraheemdev 6y agoPersonally, I use evcxr [1] instead of rust-script for it's convenience as a REPL. If only they had come up with a better name... I have to look it up every time I want to launch it :) [1]: https://github.com/google/evcxr https://github.com/google/evcxr
- piggybox 6y agoindeed hard to remember...
- djeiasbsbo 6y ago> This is not an officially supported Google product. It's released by Google only because the (original) author happens to work there. I feel bad for the author, If he ever leaves Google he will probably not be taking this project with him.