1 unstable release

0.1.0 Mar 12, 2020

#690 in Cargo plugins

21 downloads per month

MIT/Apache

4KB
74 lines

cargo-exec

cargo-exec brings the npm run functionality to the Rust and Cargo ecosystem.

Install

cargo install cargo-exec

Defining Scripts

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"

Running Scripts

cargo exec hello

Dependencies

~0.6–1.2MB
~28K SLoC