| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.88" |
| 15 |
name = "textwrap" |
| 16 |
version = "0.16.4" |
| 17 |
build = false |
| 18 |
exclude = [ |
| 19 |
".github/", |
| 20 |
".gitignore", |
| 21 |
"benchmarks/", |
| 22 |
"examples/", |
| 23 |
"fuzz/", |
| 24 |
"images/", |
| 25 |
] |
| 26 |
autolib = false |
| 27 |
autobins = false |
| 28 |
autoexamples = false |
| 29 |
autotests = false |
| 30 |
autobenches = false |
| 31 |
description = "Library for word wrapping, indenting, and dedenting strings. Has optional support for Unicode and emojis as well as machine hyphenation." |
| 32 |
documentation = "https://docs.rs/textwrap/" |
| 33 |
readme = "README.md" |
| 34 |
keywords = [ |
| 35 |
"text", |
| 36 |
"formatting", |
| 37 |
"wrap", |
| 38 |
"typesetting", |
| 39 |
"hyphenation", |
| 40 |
] |
| 41 |
categories = [ |
| 42 |
"text-processing", |
| 43 |
"command-line-interface", |
| 44 |
] |
| 45 |
license = "MIT" |
| 46 |
repository = "https://github.com/mgeisler/textwrap" |
| 47 |
|
| 48 |
[package.metadata.docs.rs] |
| 49 |
all-features = true |
| 50 |
|
| 51 |
[features] |
| 52 |
default = [ |
| 53 |
"std", |
| 54 |
"unicode-linebreak", |
| 55 |
"unicode-width", |
| 56 |
"smawk", |
| 57 |
] |
| 58 |
hyphenation = [ |
| 59 |
"std", |
| 60 |
"dep:hyphenation", |
| 61 |
] |
| 62 |
smawk = [ |
| 63 |
"std", |
| 64 |
"dep:smawk", |
| 65 |
] |
| 66 |
std = ["unicode-width?/default"] |
| 67 |
terminal_size = [ |
| 68 |
"std", |
| 69 |
"dep:terminal_size", |
| 70 |
] |
| 71 |
unicode-linebreak = [ |
| 72 |
"std", |
| 73 |
"icu_segmenter", |
| 74 |
] |
| 75 |
unicode-linebreak-complex = [ |
| 76 |
"unicode-linebreak", |
| 77 |
"icu_segmenter/auto", |
| 78 |
] |
| 79 |
unicode-width = ["dep:unicode-width"] |
| 80 |
|
| 81 |
[lib] |
| 82 |
name = "textwrap" |
| 83 |
path = "src/lib.rs" |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "indent" |
| 87 |
path = "tests/indent.rs" |
| 88 |
|
| 89 |
[[test]] |
| 90 |
name = "version-numbers" |
| 91 |
path = "tests/version-numbers.rs" |
| 92 |
|
| 93 |
[dependencies.hyphenation] |
| 94 |
version = "0.8.4" |
| 95 |
features = ["embed_en-us"] |
| 96 |
optional = true |
| 97 |
|
| 98 |
[dependencies.icu_segmenter] |
| 99 |
version = "2.3.0" |
| 100 |
features = ["compiled_data"] |
| 101 |
optional = true |
| 102 |
default-features = false |
| 103 |
|
| 104 |
[dependencies.smawk] |
| 105 |
version = "0.3.2" |
| 106 |
optional = true |
| 107 |
|
| 108 |
[dependencies.terminal_size] |
| 109 |
version = "0.4.0" |
| 110 |
optional = true |
| 111 |
|
| 112 |
[dependencies.unicode-width] |
| 113 |
version = "0.2.0" |
| 114 |
optional = true |
| 115 |
default-features = false |
| 116 |
|
| 117 |
[dev-dependencies.unic-emoji-char] |
| 118 |
version = "0.9.0" |
| 119 |
|
| 120 |
[dev-dependencies.version-sync] |
| 121 |
version = "0.9.5" |
| 122 |
|
| 123 |
[target."cfg(unix)".dev-dependencies.termion] |
| 124 |
version = "4.0.2" |
| 125 |
|
| 126 |
[lints.rust.unexpected_cfgs] |
| 127 |
level = "warn" |
| 128 |
priority = 0 |
| 129 |
check-cfg = ["cfg(fuzzing)"] |