|0.2.0||Dec 22, 2022|
|0.1.5||Jun 18, 2021|
|0.1.4||Oct 9, 2020|
|0.1.3||Nov 22, 2019|
|0.1.1||Oct 25, 2019|
#165 in Command-line interface
43 downloads per month
Denim is an alternative way to make and run Rust "scripts" with focus on minimal runtime overhead and ease of script development.
- Full real-time output of
- Support for
Cargo.tomldefinitions within script source.
- Sensible script templates.
- Very low execution overhead after script was built.
- Create, build and tests scripts without interrupting existing script callers.
- Run inline scripts - use
cargo script(er)for this.
- Non-Linux support.
You will need Rust installed (tested with 1.64.0).
cargo install denim
Crate new minimal script and build it.
denim new --bare hello_world
Crate new cotton prelude script and build it (this will take a moment).
denim new hello_world
Now you can run the script as any other binary. Note that you can also run the script without building it first - the build will be done silently before program is executed.
After making changes to script it needs to be rebuild for them to take effect.
Executing script directly (e.g.
./hello_world) will execute last built version until changed script builds successfully.
denim build hello_world
Rebuild and run script after making changes.
denim run hello_world
denim test hello_world
denim check hello_world