Hacker Timesnew | past | comments | ask | show | jobs | submitlogin
Rust-script – Run Rust files and expressions as scripts without any setup or co (rust-script.org)
37 points by todsacerdoti on Nov 22, 2020 | hide | past | favorite | 6 comments


Personally, 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


> 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.


indeed hard to remember...


How is this different from xshell? https://github.com/matklad/xshell


From 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?


Very 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.




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

Search: