From 1582f1bedd79439624e3fdf4fe6f778350e171af Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Wed, 12 Sep 2018 12:14:37 +0100 Subject: [PATCH] Add badges and Cargo.toml meta fields (#6) Closes #3 --- Cargo.toml | 7 +++++++ README.md | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 054142f..39c9e7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,10 @@ version = "0.1.0" authors = ["Dan Reeves "] repository = "https://github.com/danreeves/cargo-cmd" license = "MIT" +license-file = "LICENSE" +readme = "README.md" +categories = ["development-tools::cargo-plugins"] +keywords = ["cargo", "cmd", "scripts", "commands", "npm"] [dependencies] toml = "0.4.6" @@ -15,3 +19,6 @@ subprocess = "0.1.13" [package.metadata.commands] greet = "echo 'Hello, planet!'" dev = "cargo watch -s 'clear; cargo build && cargo cmd greet'" + +[badges] +travis-ci = { repository = "danreeves/cargo-cmd", branch = "master" } diff --git a/README.md b/README.md index 08ac050..ad97b27 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # cargo-cmd +[![crates.io version][1]][2] +[![build status][3]][4] +[![docs.rs docs][5]][6] +[![license][7]][8] + Like `npm` scripts, but for `cargo`. ## Installation @@ -27,3 +32,15 @@ Hello, planet! ## License [MIT © Dan Reeves](./LICENSE) + + + +[1]: https://img.shields.io/crates/v/cargo-cmd.svg?style=flat-square +[2]: https://crates.io/crates/cargo-cmd +[3]: https://img.shields.io/travis/danreeves/cargo-cmd.svg?style=flat-square +[4]: https://travis-ci.org/danreeves/cargo-cmd +[5]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square +[6]: https://docs.rs/cargo-cmd +[7]: https://img.shields.io/crates/l/cargo-cmd.svg?style=flat-square +[8]: ./LICENSE +