From 376a9c53bc74bfd7595f7fa7fa502d359d91d027 Mon Sep 17 00:00:00 2001 From: Nilstrieb Date: Wed, 18 Aug 2021 19:01:57 +0200 Subject: [PATCH] ready for publishing --- Cargo.toml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c6bf827..dd5b306 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,16 +3,35 @@ name = "jsonformat" version = "0.1.0" authors = ["Nilstrieb "] edition = "2018" -description = "Reads raw json from stdin and formats it to stdout" +license = "MIT" +description = "Formats JSON extremely fast" +homepage = "https://github.com/Nilstrieb/jsonformat" +repository = "https://github.com/Nilstrieb/jsonformat" +readme = "README.md" +keywords = ["json", "formatting", "cli"] +categories = ["command-line-utilities"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clap = "3.0.0-beta.2" +clap = { version= "3.0.0-beta.2", optional = true } [dev-dependencies] criterion = "0.3" +[features] +default = ["bin"] +bin = ["clap"] + +[lib] +name = "jsonformat" +path = "src/lib.rs" + +[[bin]] +name = "jsonformat" +path = "src/main.rs" +required-features = ["bin"] + [[bench]] name = "bench" harness = false \ No newline at end of file