News for hackers. Stuff that matters.
Re:Ask HN: What to use instead of Bash / Sh for scripting? by Raed667 on Saturday April 10, 2021 @04:17PM (#26764739)
How easy is it to cross-compile with Rust?
Re:Ask HN: What to use instead of Bash / Sh for scripting? by brundolf on Saturday April 10, 2021 @06:05PM (#26765586)
Trivial. All of the tooling, dependency management, linking, etc. is neatly bundled together under cargo. Just run "cargo build" for the current system, or specify one or more other architectures as arguments to get multiple binaries. Everything's statically-linked so you should be able to scp those wherever.

Still, when we're talking about casual "scripts" even this extra step seems a little bit burdensome