ctl-core 0.0.2

Shared clap chassis for the *ctl CLIs
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.97.1"
name = "ctl-core"
version = "0.0.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared clap chassis for the *ctl CLIs"
homepage = "https://github.com/victor-software-house/ctl-core"
readme = "README.md"
keywords = [
    "clap",
    "cli",
    "help",
    "color",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/victor-software-house/ctl-core"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cli = [
    "dep:clap",
    "dep:anyhow",
]
color = [
    "dep:anstream",
    "dep:anstyle",
]
default = [
    "cli",
    "view",
    "help",
]
help = [
    "cli",
    "color",
    "dep:comfy-table",
]
json = [
    "dep:serde",
    "dep:serde_json",
]
schema = [
    "json",
    "dep:schemars",
]
view = [
    "color",
    "json",
    "dep:minijinja",
    "dep:comfy-table",
]

[lib]
name = "ctl_core"
path = "src/lib.rs"

[[test]]
name = "color_argv"
path = "tests/color_argv.rs"

[[test]]
name = "flag_warnings"
path = "tests/flag_warnings.rs"

[[test]]
name = "flags_cli"
path = "tests/flags_cli.rs"

[[test]]
name = "format_tokens"
path = "tests/format_tokens.rs"

[[test]]
name = "help_render"
path = "tests/help_render.rs"

[[test]]
name = "layout_wrap"
path = "tests/layout_wrap.rs"

[[test]]
name = "parse"
path = "tests/parse.rs"

[[test]]
name = "schema_models"
path = "tests/schema_models.rs"

[[test]]
name = "style_ansi"
path = "tests/style_ansi.rs"

[[test]]
name = "view"
path = "tests/view.rs"

[dependencies.anstream]
version = "1.0.0"
optional = true

[dependencies.anstyle]
version = "1.0.14"
optional = true

[dependencies.anyhow]
version = "1.0.104"
optional = true

[dependencies.clap]
version = "4.6.6"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.comfy-table]
version = "8.0.0"
features = [
    "custom_styling",
    "tty",
]
optional = true
default-features = false

[dependencies.document-features]
version = "0.2.12"

[dependencies.indoc]
version = "2.0.7"

[dependencies.minijinja]
version = "2.24.0"
optional = true

[dependencies.schemars]
version = "1.2.2"
optional = true

[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.151"
optional = true

[dev-dependencies.indoc]
version = "2.0.7"

[lints.clippy]
dbg_macro = "deny"
disallowed_macros = "deny"
expect_used = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
private_intra_doc_links = "deny"

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
strip = "symbols"