Using Rust for short scripts?

Has anyone here had any experience using Rust for short scripts? Are there any useful tools I should be aware of? I'd like to be able to run small programs and use crates without setting up a full project, if possible.

cargo-script sounds like it could be what you're looking for:

cargo-script is a Cargo subcommand designed to let people quickly and easily run Rust "scripts" which can make use of Cargo's package ecosystem. It can also evaluate expressions and run filters.

1 Like

Thanks! That does indeed look useful. I'll check it out.

1 Like