| 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 = "2024" |
| 14 |
rust-version = "1.88" |
| 15 |
name = "icu_segmenter" |
| 16 |
version = "2.3.0" |
| 17 |
authors = ["The ICU4X Project Developers"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"data/**/*", |
| 21 |
"src/**/*", |
| 22 |
"examples/**/*", |
| 23 |
"benches/**/*", |
| 24 |
"tests/**/*", |
| 25 |
"Cargo.toml", |
| 26 |
"LICENSE", |
| 27 |
"README.md", |
| 28 |
"build.rs", |
| 29 |
] |
| 30 |
autolib = false |
| 31 |
autobins = false |
| 32 |
autoexamples = false |
| 33 |
autotests = false |
| 34 |
autobenches = false |
| 35 |
description = "Unicode line breaking and text segmentation algorithms for text boundaries analysis" |
| 36 |
homepage = "https://icu4x.unicode.org" |
| 37 |
readme = "README.md" |
| 38 |
keywords = [ |
| 39 |
"unicode", |
| 40 |
"segmentation", |
| 41 |
"text-processing", |
| 42 |
] |
| 43 |
categories = [ |
| 44 |
"internationalization", |
| 45 |
"localization", |
| 46 |
"no-std", |
| 47 |
"embedded", |
| 48 |
] |
| 49 |
license = "Unicode-3.0" |
| 50 |
repository = "https://github.com/unicode-org/icu4x" |
| 51 |
resolver = "2" |
| 52 |
|
| 53 |
[package.metadata.docs.rs] |
| 54 |
all-features = true |
| 55 |
|
| 56 |
[package.metadata.cargo-all-features] |
| 57 |
max_combination_size = 3 |
| 58 |
|
| 59 |
[features] |
| 60 |
auto = ["lstm"] |
| 61 |
compiled_data = [ |
| 62 |
"dep:icu_segmenter_data", |
| 63 |
"dep:icu_locale_fallback", |
| 64 |
"icu_locale_fallback?/compiled_data", |
| 65 |
"icu_provider/baked", |
| 66 |
] |
| 67 |
datagen = [ |
| 68 |
"serde", |
| 69 |
"dep:databake", |
| 70 |
"potential_utf/databake", |
| 71 |
"zerovec/databake", |
| 72 |
"icu_collections/databake", |
| 73 |
"icu_provider/export", |
| 74 |
] |
| 75 |
default = [ |
| 76 |
"compiled_data", |
| 77 |
"auto", |
| 78 |
] |
| 79 |
lstm = ["dep:core_maths"] |
| 80 |
serde = [ |
| 81 |
"dep:serde", |
| 82 |
"potential_utf/serde", |
| 83 |
"zerovec/serde", |
| 84 |
"icu_collections/serde", |
| 85 |
"icu_provider/serde", |
| 86 |
] |
| 87 |
unstable = [] |
| 88 |
|
| 89 |
[lib] |
| 90 |
name = "icu_segmenter" |
| 91 |
path = "src/lib.rs" |
| 92 |
bench = false |
| 93 |
|
| 94 |
[[example]] |
| 95 |
name = "experimental_segmenter" |
| 96 |
path = "examples/experimental_segmenter.rs" |
| 97 |
|
| 98 |
[[test]] |
| 99 |
name = "adaboost" |
| 100 |
path = "tests/adaboost/main.rs" |
| 101 |
|
| 102 |
[[test]] |
| 103 |
name = "cnn" |
| 104 |
path = "tests/cnn/main.rs" |
| 105 |
required-features = [] |
| 106 |
|
| 107 |
[[test]] |
| 108 |
name = "complex_word" |
| 109 |
path = "tests/complex_word.rs" |
| 110 |
required-features = ["auto"] |
| 111 |
|
| 112 |
[[test]] |
| 113 |
name = "css_line_break" |
| 114 |
path = "tests/css_line_break.rs" |
| 115 |
|
| 116 |
[[test]] |
| 117 |
name = "css_word_break" |
| 118 |
path = "tests/css_word_break.rs" |
| 119 |
|
| 120 |
[[test]] |
| 121 |
name = "locale" |
| 122 |
path = "tests/locale.rs" |
| 123 |
|
| 124 |
[[test]] |
| 125 |
name = "spec_test" |
| 126 |
path = "tests/spec_test.rs" |
| 127 |
|
| 128 |
[[test]] |
| 129 |
name = "word_rule_status" |
| 130 |
path = "tests/word_rule_status.rs" |
| 131 |
|
| 132 |
[[bench]] |
| 133 |
name = "bench" |
| 134 |
path = "benches/bench.rs" |
| 135 |
harness = false |
| 136 |
|
| 137 |
[dependencies.core_maths] |
| 138 |
version = "0.1.0" |
| 139 |
optional = true |
| 140 |
default-features = false |
| 141 |
|
| 142 |
[dependencies.databake] |
| 143 |
version = "0.2.0" |
| 144 |
features = ["derive"] |
| 145 |
optional = true |
| 146 |
default-features = false |
| 147 |
|
| 148 |
[dependencies.icu_collections] |
| 149 |
version = "~2.3.0" |
| 150 |
default-features = false |
| 151 |
|
| 152 |
[dependencies.icu_locale_fallback] |
| 153 |
version = "~2.3.0" |
| 154 |
optional = true |
| 155 |
default-features = false |
| 156 |
|
| 157 |
[dependencies.icu_provider] |
| 158 |
version = "2.3.0" |
| 159 |
default-features = false |
| 160 |
|
| 161 |
[dependencies.icu_segmenter_data] |
| 162 |
version = "~2.3.0" |
| 163 |
optional = true |
| 164 |
default-features = false |
| 165 |
|
| 166 |
[dependencies.potential_utf] |
| 167 |
version = "0.1.3" |
| 168 |
features = [ |
| 169 |
"alloc", |
| 170 |
"zerovec", |
| 171 |
] |
| 172 |
default-features = false |
| 173 |
|
| 174 |
[dependencies.serde] |
| 175 |
version = "1.0.220" |
| 176 |
features = [ |
| 177 |
"derive", |
| 178 |
"alloc", |
| 179 |
] |
| 180 |
optional = true |
| 181 |
default-features = false |
| 182 |
|
| 183 |
[dependencies.smallvec] |
| 184 |
version = "1.10.0" |
| 185 |
default-features = false |
| 186 |
|
| 187 |
[dependencies.utf8_iter] |
| 188 |
version = "1.0.2" |
| 189 |
default-features = false |
| 190 |
|
| 191 |
[dependencies.zerovec] |
| 192 |
version = "0.11.7" |
| 193 |
features = [ |
| 194 |
"alloc", |
| 195 |
"yoke", |
| 196 |
] |
| 197 |
default-features = false |
| 198 |
|
| 199 |
[dev-dependencies.icu_locale_core] |
| 200 |
version = "2.3.0" |
| 201 |
default-features = false |
| 202 |
|
| 203 |
[dev-dependencies.itertools] |
| 204 |
version = "0.14.0" |
| 205 |
|
| 206 |
[dev-dependencies.ndarray] |
| 207 |
version = "0.16.0" |
| 208 |
|
| 209 |
[dev-dependencies.serde] |
| 210 |
version = "1.0.220" |
| 211 |
features = ["derive"] |
| 212 |
default-features = false |
| 213 |
|
| 214 |
[dev-dependencies.serde_json] |
| 215 |
version = "1.0.45" |
| 216 |
|
| 217 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 218 |
version = "0.5.0" |
| 219 |
|
| 220 |
[lints.clippy] |
| 221 |
alloc_instead_of_core = "warn" |
| 222 |
bool_assert_comparison = "allow" |
| 223 |
branches_sharing_code = "warn" |
| 224 |
collection_is_never_read = "warn" |
| 225 |
crosspointer_transmute = "warn" |
| 226 |
dbg_macro = "warn" |
| 227 |
debug_assert_with_mut_call = "warn" |
| 228 |
doc_markdown = "warn" |
| 229 |
exhaustive_enums = "deny" |
| 230 |
exhaustive_structs = "deny" |
| 231 |
fn_to_numeric_cast_any = "warn" |
| 232 |
infinite_loop = "warn" |
| 233 |
large_stack_arrays = "warn" |
| 234 |
mismatching_type_param_order = "warn" |
| 235 |
missing_fields_in_debug = "warn" |
| 236 |
missing_transmute_annotations = "warn" |
| 237 |
negative_feature_names = "warn" |
| 238 |
or_fun_call = "warn" |
| 239 |
same_functions_in_if_condition = "warn" |
| 240 |
todo = "warn" |
| 241 |
transmute_bytes_to_str = "warn" |
| 242 |
transmute_int_to_bool = "warn" |
| 243 |
transmute_int_to_non_zero = "warn" |
| 244 |
transmute_ptr_to_ptr = "warn" |
| 245 |
transmute_ptr_to_ref = "warn" |
| 246 |
transmute_undefined_repr = "warn" |
| 247 |
transmutes_expressible_as_ptr_casts = "warn" |
| 248 |
trivially_copy_pass_by_ref = "deny" |
| 249 |
unnecessary_wraps = "warn" |
| 250 |
useless_transmute = "warn" |
| 251 |
wildcard_dependencies = "warn" |
| 252 |
|
| 253 |
[lints.rust] |
| 254 |
missing_debug_implementations = "deny" |
| 255 |
trivial_numeric_casts = "deny" |
| 256 |
unused_lifetimes = "warn" |
| 257 |
unused_macro_rules = "warn" |
| 258 |
unused_qualifications = "warn" |
| 259 |
|
| 260 |
[lints.rust.unexpected_cfgs] |
| 261 |
level = "warn" |
| 262 |
priority = 0 |
| 263 |
check-cfg = [ |
| 264 |
"cfg(icu4c_enable_renaming)", |
| 265 |
"cfg(needs_alloc_error_handler)", |
| 266 |
"cfg(icu4x_nightly_tests)", |
| 267 |
"cfg(icu4x_run_size_tests)", |
| 268 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 269 |
] |