#cargo #cmd #scripts #commands #npm

app cargo-cmd

Like npm scripts, but for cargo

1 unstable release

0.1.0 Sep 10, 2018
Download history 18/week @ 2018-09-15 2/week @ 2018-09-22 6/week @ 2018-09-29 8/week @ 2018-10-06 13/week @ 2018-10-13 36/week @ 2018-10-20 3/week @ 2018-10-27

2 downloads per month

MIT license

8KB
167 lines

cargo-cmd

crates.io version build status docs.rs docs license

Like npm scripts, but for cargo.

Installation

Disclaimer: Currently requires nightly

cargo install cargo-cmd

Usage

You can define your commands in Cargo.toml under the [package.metadata.commands] table, like so:

[package.metadata.commands]
greet = "echo 'Hello, planet!'"

Now you can run cargo cmd greet:

$ cargo cmd greet
> echo 'Hello, planet!'
Hello, planet!

License

MIT © Dan Reeves

Dependencies

~4.5MB
~72K SLoC