[package]
edition = "2024"
rust-version = "1.85"
name = "cli-forge"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified CLI framework: runtime command registration with styled output through one API."
homepage = "https://github.com/jamesgober/cli-forge"
documentation = "https://docs.rs/cli-forge"
readme = "README.md"
keywords = [
"cli",
"command-line",
"terminal",
"framework",
]
categories = [
"command-line-interface",
"development-tools",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/cli-forge"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
auth = ["std"]
color = [
"std",
"dep:enable-ansi-support",
]
default = [
"std",
"color",
]
std = []
[lib]
name = "cli_forge"
path = "src/lib.rs"
[[example]]
name = "arguments"
path = "examples/arguments.rs"
required-features = ["std"]
[[example]]
name = "auth"
path = "examples/auth.rs"
required-features = ["auth"]
[[example]]
name = "colors"
path = "examples/colors.rs"
required-features = ["std"]
[[example]]
name = "commands"
path = "examples/commands.rs"
required-features = ["std"]
[[example]]
name = "quick_start"
path = "examples/quick_start.rs"
required-features = ["std"]
[[example]]
name = "status_report"
path = "examples/status_report.rs"
required-features = ["std"]
[[example]]
name = "three_paths"
path = "examples/three_paths.rs"
required-features = ["std"]
[[test]]
name = "allocation"
path = "tests/allocation.rs"
[[test]]
name = "registration"
path = "tests/registration.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
required-features = ["std"]
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"
[target."cfg(windows)".dependencies.enable-ansi-support]
version = "0.2"
optional = true
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"