Utility scripts written in Rust.
Each .rs
file in src/bin
is a script. src/lib.rs
and surrounding modules provide shared
utility code.
- Install Rust: https://www.rust-lang.org/tools/install
- From within this project, run
cargo run --bin <script-name>
, where<script-name>
is the name of one of the scripts undersrc/bin
- For example, to run
src/bin/gen-uuid.rs
, typecargo run --bin gen-uuid
- Add the
--release
flag to make it run faster (at the cost of a little longer compilation time the first time it's run) - To compile scripts to reusable binaries: run
cargo build --release
- Binaries will then be located under
target/release
- Binaries will then be located under
- For example, to run