[package]
edition = "2024"
name = "cli-engine"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust CLI framework for consistent command modules"
readme = "README.md"
keywords = [
"cli",
"framework",
"clap",
"schema",
]
categories = ["command-line-interface"]
license = "Apache-2.0"
repository = "https://github.com/godaddy/cli-engine"
[features]
pkce-auth = [
"dep:keyring",
"dep:open",
"dep:rand",
"dep:sha2",
"dep:url",
"dep:zeroize",
]
[lib]
name = "cli_engine"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "typed"
path = "examples/typed.rs"
[[test]]
name = "consumer_cli"
path = "tests/consumer_cli.rs"
[[test]]
name = "derive_bridge"
path = "tests/derive_bridge.rs"
[[test]]
name = "exhaustive_cli_contract"
path = "tests/exhaustive_cli_contract.rs"
[[test]]
name = "exhaustive_output"
path = "tests/exhaustive_output.rs"
[[test]]
name = "exhaustive_public_api"
path = "tests/exhaustive_public_api.rs"
[[test]]
name = "foundation"
path = "tests/foundation.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.base64]
version = "0.22.1"
[dependencies.chrono]
version = "0.4.42"
features = [
"clock",
"serde",
]
default-features = false
[dependencies.clap]
version = "4.5.53"
features = [
"derive",
"std",
"string",
]
[dependencies.jmespath]
version = "0.5.0"
[dependencies.keyring]
version = "3.6.1"
optional = true
default-features = false
[dependencies.open]
version = "5.3.2"
optional = true
[dependencies.rand]
version = "0.9"
optional = true
[dependencies.regex]
version = "1.12.2"
[dependencies.reqwest]
version = "0.12.24"
features = [
"json",
"multipart",
"rustls-tls",
]
default-features = false
[dependencies.schemars]
version = "1.2.1"
features = ["derive"]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.sha2]
version = "0.10.9"
optional = true
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
version = "1.48.0"
features = [
"fs",
"io-std",
"io-util",
"macros",
"net",
"process",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[dependencies.tracing]
version = "0.1.43"
[dependencies.url]
version = "2.5.4"
optional = true
[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.tempfile]
version = "3.23.0"
[target.'cfg(target_os = "linux")'.dependencies.keyring]
version = "3.6.1"
features = [
"async-secret-service",
"tokio",
"crypto-rust",
]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.keyring]
version = "3.6.1"
features = ["apple-native"]
optional = true
default-features = false
[target."cfg(windows)".dependencies.keyring]
version = "3.6.1"
features = ["windows-native"]
optional = true
default-features = false
[lints.clippy]
dbg_macro = "warn"
default_union_representation = "deny"
empty_drop = "warn"
exit = "deny"
fallible_impl_from = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
lossy_float_literal = "deny"
macro_use_imports = "warn"
match_same_arms = "warn"
mem_forget = "deny"
multiple_inherent_impl = "deny"
mut_mut = "deny"
no_effect_underscore_binding = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
ptr_as_ptr = "deny"
same_name_method = "warn"
single_char_lifetime_names = "warn"
trait_duplication_in_bounds = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "warn"
unneeded_field_pattern = "warn"
unseparated_literal_suffix = "warn"
unwrap_in_result = "deny"
unwrap_used = "deny"
used_underscore_binding = "warn"
wildcard_dependencies = "deny"
[lints.rust]
ambiguous_negative_literals = "warn"
closure_returning_async_block = "warn"
explicit_outlives_requirements = "warn"
if_let_rescope = "warn"
impl_trait_overcaptures = "warn"
impl_trait_redundant_captures = "warn"
let_underscore_drop = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "warn"
noop_method_call = "warn"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unsafe_attr_outside_unsafe = "warn"
unsafe_code = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unused]
level = "warn"
priority = -1