cargo-exec

Crates.iocargo-exec
lib.rscargo-exec
version0.1.0
sourcesrc
created_at2020-03-12 07:21:29.057633
updated_at2020-03-12 07:21:29.057633
description`npm run test` for Rust
homepage
repositoryhttps://github.com/pefish/cargo-exec
max_upload_size
id217790
size7,024
pefish (pefish)

documentation

README

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
Commit count: 1

cargo fmt