| Crates.io | denim |
| lib.rs | denim |
| version | 0.2.0 |
| created_at | 2019-10-24 12:30:27.208866+00 |
| updated_at | 2022-12-22 15:43:21.988026+00 |
| description | Denim is an alternative way to make and run Rust "scripts" with focus on minimal runtime overhead and ease of script development. |
| homepage | |
| repository | https://github.com/jpastuszek/denim |
| max_upload_size | |
| id | 175210 |
| size | 45,110 |
Denim is an alternative way to make and run Rust "scripts" with focus on minimal runtime overhead and ease of script development.
cargo command runs.Cargo.toml definitions within script source.#! support.cargo script(er) for this.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.
./hello_world
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
Run tests.
denim test hello_world
Check script.
denim check hello_world