boxen 0.3.1

A Rust library for creating styled terminal boxes around text with performance optimizations
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.85.0"
name = "boxen"
version = "0.3.1"
authors = ["Boxen Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for creating styled terminal boxes around text with performance optimizations"
documentation = "https://docs.rs/boxen"
readme = "README.md"
keywords = [
    "terminal",
    "cli",
    "box",
    "text",
    "formatting",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sabry-awad97/boxen"

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

[features]
default = []
dhat-heap = ["dhat"]
terminal-cache = ["signal-hook"]
width-cache = [
    "lru",
    "ahash",
]

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

[[example]]
name = "basic_box"
path = "examples/basic_box.rs"

[[example]]
name = "caching_demo"
path = "examples/caching_demo.rs"

[[example]]
name = "clock_spinner"
path = "examples/clock_spinner.rs"

[[example]]
name = "color_demo"
path = "examples/color_demo.rs"

[[example]]
name = "comprehensive_demo"
path = "examples/comprehensive_demo.rs"

[[example]]
name = "error_handling_demo"
path = "examples/error_handling_demo.rs"

[[example]]
name = "fullscreen_demo"
path = "examples/fullscreen_demo.rs"

[[example]]
name = "js_demo_port"
path = "examples/js_demo_port.rs"

[[example]]
name = "main_api_demo"
path = "examples/main_api_demo.rs"

[[example]]
name = "memory_profiling"
path = "examples/memory_profiling.rs"

[[example]]
name = "performance_demo"
path = "examples/performance_demo.rs"

[[example]]
name = "string_pool_demo"
path = "examples/string_pool_demo.rs"

[[example]]
name = "usage_patterns_demo"
path = "examples/usage_patterns_demo.rs"

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

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

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

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

[[bench]]
name = "allocation_benchmarks"
path = "benches/allocation_benchmarks.rs"
harness = false

[[bench]]
name = "criterion_benchmarks"
path = "benches/criterion_benchmarks.rs"
harness = false

[[bench]]
name = "performance_benchmarks"
path = "benches/performance_benchmarks.rs"
harness = false

[dependencies.ahash]
version = "0.8.12"
optional = true

[dependencies.colored]
version = "3.1.1"

[dependencies.dhat]
version = "0.3.3"
optional = true

[dependencies.lru]
version = "0.16.3"
optional = true

[dependencies.signal-hook]
version = "0.4.3"
optional = true

[dependencies.terminal_size]
version = "0.4.3"

[dependencies.textwrap]
version = "0.16.2"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.unicode-width]
version = "0.2.2"

[dev-dependencies.chrono]
version = "0.4.43"

[dev-dependencies.criterion]
version = "0.8.1"
features = ["html_reports"]

[dev-dependencies.ctrlc]
version = "3.5.1"

[profile.dev]
opt-level = 1

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"