[package]
edition = "2024"
rust-version = "1.85"
name = "rusty-figlet"
version = "0.2.0"
authors = ["James Han <jsh562@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "rusty-figlet"
description = "Render ASCII-art banners from text — a Rust port of cmatsuoka's `figlet(6)` v2.2.5 with an in-house FIGfont 2.0 parser, all six horizontal smush rules + universal, 12 bundled `.flf` fonts via `include_bytes!`, terminal-width-aware layout, color/rainbow output, byte-equal Strict-mode upstream compatibility, and a typed library API. v0.2: feature layout reorganized — see CHANGELOG."
homepage = "https://github.com/jsh562/rusty-figlet"
documentation = "https://docs.rs/rusty-figlet"
readme = "README.md"
keywords = [
"figlet",
"ascii-art",
"banner",
"cli",
"toilet",
]
categories = [
"command-line-utilities",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jsh562/rusty-figlet"
[package.metadata.binstall]
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
cli = ["dep:clap"]
color = [
"dep:anstyle",
"dep:termcolor",
]
completions = ["dep:clap_complete"]
default = ["full"]
figlet-classic = [
"cli",
"strict-compat",
]
figlet-minimal = ["cli"]
figlet-toilet-compat = [
"cli",
"color",
"rainbow",
]
full = [
"cli",
"color",
"rainbow",
"terminal-width",
"completions",
"strict-compat",
]
rainbow = ["color"]
strict-compat = []
terminal-width = ["dep:terminal_size"]
[lib]
name = "rusty_figlet"
path = "src/lib.rs"
[[bin]]
name = "rusty-figlet"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "color_isolation"
path = "tests/color_isolation.rs"
[[test]]
name = "compat_default"
path = "tests/compat_default.rs"
[[test]]
name = "compat_strict"
path = "tests/compat_strict.rs"
[[test]]
name = "completions_drift"
path = "tests/completions_drift.rs"
[[test]]
name = "figfont_parser"
path = "tests/figfont_parser.rs"
[[test]]
name = "harness_smoke"
path = "tests/harness_smoke.rs"
[[test]]
name = "library_api"
path = "tests/library_api.rs"
[[test]]
name = "missing_docs"
path = "tests/missing_docs.rs"
[[test]]
name = "sc_coverage_lint"
path = "tests/sc_coverage_lint.rs"
[[test]]
name = "smush_rules"
path = "tests/smush_rules.rs"
[[test]]
name = "width_precedence"
path = "tests/width_precedence.rs"
[dependencies.anstyle]
version = "1"
optional = true
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.clap_complete]
version = "4"
optional = true
[dependencies.termcolor]
version = "1"
optional = true
[dependencies.terminal_size]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.trybuild]
version = "1"
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"