denim-0.1.4 is not a library.
Denim is an alternative way to make and run Rust "scripts" with focus on minimal runtime overhead and ease of script development.
Features
- Tool set to create, build and tests scripts without interrupting callers.
- Full real-time output of
cargo
command runs. - Support for
Cargo.toml
definitions within script source. - Sensible script templates.
- Very low execution overhead after script was built.
- #! support.
Non-goals
- Run inline scripts - use
cargo script(er)
for this. - Non Linux support.
Installation
You will need Rust installed (tested with 1.37.0).
Examples
Crate new minimal script and build it.
Crate new cotton prelude script and build it (this will take a moment).
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.
Rebuild and run script after making changes.
Run tests.
Check script.