Cargo Features

[dependencies]
textwrap = { version = "0.16.1", default-features = false, features = ["hyphenation", "terminal_size", "smawk", "unicode-linebreak", "unicode-width"] }
default = smawk, unicode-linebreak, unicode-width

These default features are set whenever textwrap is added without default-features = false somewhere in the dependency tree.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

hyphenation implicit feature

Enables hyphenation

hyphenation:

Knuth-Liang hyphenation for a variety of languages

terminal_size implicit feature

Enables terminal_size ^0.2.1

terminal_size:

Gets the size of your Linux or Windows terminal

smawk default
unicode-linebreak default
unicode-width default

Enables unicode-width ^0.1.10