- Install Rust.
- Create a new binary: cargo new --bin rename-it.
- Add the dependencies to the Cargo. toml file.
- Add the actual implementation to the main.rs file (iterating till you get it the way you want, of course).
- Compile it.
- Copy the executable to hand to a friend.
Can you use Rust for scripting?
tl;dr: Yes, for a performance-oriented, system-level language, scripting in Rust is surprisingly practical, on par with Python in this case. The Cargo build/package manager offer three big advantages compared to using a language like C or C++.
What are scripts in Rust?
The build script is simply another Rust file that will be compiled and invoked prior to compiling anything else in the package. Hence it can be used to fulfill pre-requisites of your crate.
Is scripting cheating?
Scripting is the use of a program or game feature to automate certain actions or behaviors. The use of scripts may or may not be considered cheating, depending on the behavior involved, and whether said behaviour is replicable without the use of such script.