feat: add figlet banners and hyphenation behind features

This commit is contained in:
randogoth 2026-10-04 20:53:20 +03:00
parent 9e1cfed284
commit 36b868e094
13 changed files with 4282 additions and 29 deletions

View file

@ -7,7 +7,21 @@ description = "Fixed-width plain text output for itsybitsy"
license = "Apache-2.0"
publish = false
[features]
default = []
# FIGlet banners for headings that ask for one. Off by default: headings are
# underlined, and the two vendored fonts are 40 KiB of the binary.
figlet = []
# Hyphenation when wrapping, English patterns only. Off by default: it needs an
# embedded pattern dictionary for a setting most pages leave alone.
hyphenation = ["dep:hyphenation", "hyphenation/embed_en-us"]
# Every language the hyphenation crate carries, which costs a few megabytes of
# binary; `hyphenation` alone covers the default `en-us`.
hyphenation-all = ["hyphenation", "hyphenation/embed_all"]
[dependencies]
hyphenation = { version = "0.8", default-features = false, optional = true }
log = "0.4"
itsybitsy-core = { path = "../core" }
[lints.rust]