# 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 = "2021" rust-version = "1.88" name = "textwrap" version = "0.16.4" build = false exclude = [ ".github/", ".gitignore", "benchmarks/", "examples/", "fuzz/", "images/", ] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Library for word wrapping, indenting, and dedenting strings. Has optional support for Unicode and emojis as well as machine hyphenation." documentation = "https://docs.rs/textwrap/" readme = "README.md" keywords = [ "text", "formatting", "wrap", "typesetting", "hyphenation", ] categories = [ "text-processing", "command-line-interface", ] license = "MIT" repository = "https://github.com/mgeisler/textwrap" [package.metadata.docs.rs] all-features = true [features] default = [ "std", "unicode-linebreak", "unicode-width", "smawk", ] hyphenation = [ "std", "dep:hyphenation", ] smawk = [ "std", "dep:smawk", ] std = ["unicode-width?/default"] terminal_size = [ "std", "dep:terminal_size", ] unicode-linebreak = [ "std", "icu_segmenter", ] unicode-linebreak-complex = [ "unicode-linebreak", "icu_segmenter/auto", ] unicode-width = ["dep:unicode-width"] [lib] name = "textwrap" path = "src/lib.rs" [[test]] name = "indent" path = "tests/indent.rs" [[test]] name = "version-numbers" path = "tests/version-numbers.rs" [dependencies.hyphenation] version = "0.8.4" features = ["embed_en-us"] optional = true [dependencies.icu_segmenter] version = "2.3.0" features = ["compiled_data"] optional = true default-features = false [dependencies.smawk] version = "0.3.2" optional = true [dependencies.terminal_size] version = "0.4.0" optional = true [dependencies.unicode-width] version = "0.2.0" optional = true default-features = false [dev-dependencies.unic-emoji-char] version = "0.9.0" [dev-dependencies.version-sync] version = "0.9.5" [target."cfg(unix)".dev-dependencies.termion] version = "4.0.2" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(fuzzing)"]