Crates.io | cargo-exec |
lib.rs | cargo-exec |
version | 0.1.0 |
source | src |
created_at | 2020-03-12 07:21:29.057633 |
updated_at | 2020-03-12 07:21:29.057633 |
description | `npm run test` for Rust |
homepage | |
repository | https://github.com/pefish/cargo-exec |
max_upload_size | |
id | 217790 |
size | 7,024 |
cargo-exec
brings the npm run
functionality to the Rust and Cargo ecosystem.
cargo install cargo-exec
Scripts are defined by adding a [package.metadata.scripts]
section to the Cargo.toml
file of your project, as shown below.
[package.metadata.scripts]
hello = "echo Hello"
cargo exec hello