[package]
edition = "2024"
rust-version = "1.85.0"
name = "noya-cli"
version = "0.0.5"
authors = ["Sebastien Rousseau <sebastian.rousseau@gmail.com>"]
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line tools for noyalib (noyafmt, noyavalidate)"
homepage = "https://github.com/sebastienrousseau/noyalib"
documentation = "https://docs.rs/noya-cli"
readme = "README.md"
keywords = [
"yaml",
"cli",
"formatter",
"validator",
"schema",
]
categories = [
"command-line-utilities",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/noyalib"
resolver = "2"
[features]
default = ["noyavalidate"]
noyafmt = ["noyalib/std"]
noyavalidate = [
"noyafmt",
"noyalib/noyavalidate",
"dep:miette",
]
[lib]
name = "noya_cli"
path = "src/lib.rs"
[[bin]]
name = "noyafmt"
path = "src/bin/noyafmt.rs"
required-features = ["noyafmt"]
[[bin]]
name = "noyavalidate"
path = "src/bin/noyavalidate.rs"
required-features = ["noyavalidate"]
[[test]]
name = "noyafmt_cli"
path = "tests/noyafmt_cli.rs"
[[test]]
name = "noyavalidate_cli"
path = "tests/noyavalidate_cli.rs"
[[bench]]
name = "cli_dispatch"
path = "benches/cli_dispatch.rs"
harness = false
[dependencies.clap]
version = "4.5"
features = [
"derive",
"wrap_help",
]
[dependencies.miette]
version = "7"
features = ["fancy"]
optional = true
[dependencies.noyalib]
version = "0.0.5"
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[build-dependencies.clap]
version = "4.5"
features = ["derive"]
[build-dependencies.clap_complete]
version = "4.5"
[build-dependencies.clap_mangen]
version = "0.2"