[package]
edition = "2024"
rust-version = "1.99.1"
name = "ctl-term"
version = "0.7.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal output for CLIs: colour policy per stream, colour depth, width, and an escape encoder"
readme = "README.md"
keywords = [
"terminal",
"color",
"ansi",
"tty",
"cli",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://github.com/victor-software-house/ctl-core"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cap-lints",
"warn",
]
[features]
default = ["detect"]
detect = ["dep:terminal_size"]
[lib]
name = "ctl_term"
path = "src/lib.rs"
[[test]]
name = "it"
path = "tests/it/main.rs"
[[test]]
name = "closed_pipe"
path = "tests/closed_pipe.rs"
harness = false
required-features = ["detect"]
[[test]]
name = "non_utf8_no_color"
path = "tests/non_utf8_no_color.rs"
harness = false
required-features = ["detect"]
[dependencies.anstyle]
version = "1.0.14"
[dependencies.ctl-text]
version = "=0.7.5"
[dependencies.terminal_size]
version = "0.4.4"
optional = true
[dev-dependencies.proptest]
version = "1.12.0"
features = ["std"]
default-features = false
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
as_conversions = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
disallowed_macros = "deny"
expect_used = "deny"
map_err_ignore = "deny"
match_wildcard_for_single_variants = "deny"
mod_module_files = "deny"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
rc_buffer = "deny"
string_add = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unwrap_used = "deny"
wildcard_enum_match_arm = "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_debug_implementations = "deny"
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
missing_crate_level_docs = "deny"
private_intra_doc_links = "deny"
unescaped_backticks = "deny"