Library for word wrapping, indenting, and dedenting strings. Has optional support for Unicode and emojis as well as machine hyphenation.
# Cargo.toml
[dependencies]
textwrap = "0.16.2"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Wrap a string to a specified width.
Add `features = ["unicode-width"]` to your Cargo.toml dependency.
No dependency data recorded yet.