-
Notifications
You must be signed in to change notification settings - Fork 160
/
Cargo.toml
65 lines (57 loc) · 2.35 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This file is part of ICU4X. For terms of use, please see the file
# called LICENSE at the top level of the ICU4X source tree
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
[package]
name = "icu_segmenter"
description = "Unicode line breaking and text segmentation algorithms for text boundaries analysis"
version = "0.6.0"
authors = ["The ICU4X Project Developers"]
edition = "2018"
readme = "README.md"
repository = "https://github.com/unicode-org/icu4x"
license-file = "LICENSE"
categories = ["internationalization"]
# Keep this in sync with other crates unless there are exceptions
include = [
"data/*",
"src/**/*",
"examples/**/*",
"benches/**/*",
"tests/**/*",
"Cargo.toml",
"LICENSE",
"README.md"
]
[package.metadata.cargo-all-features]
skip_optional_dependencies = true
[dependencies]
icu_char16trie = { version = "0.1", path = "../char16trie" }
icu_codepointtrie = { path = "../../utils/codepointtrie" }
icu_provider = { version = "0.6", path = "../../provider/core", features = ["macros"] }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
zerovec = { version = "0.7", path = "../../utils/zerovec", features = ["yoke"] }
databake = { version = "0.1.0", path = "../../utils/databake", optional = true, features = ["derive"] }
ndarray = { git = "https://github.com/rust-ndarray/ndarray", rev = "31244100631382bb8ee30721872a928bfdf07f44", default-features = false, optional = true, features = ["serde"] }
unicode-segmentation = { version = "1.3.0", optional = true }
num-traits = { version = "0.2", optional = true }
icu_locid = { version = "0.6", path = "../../components/locid" }
[dev-dependencies]
criterion = "0.3"
icu_testdata = { version = "0.6", path = "../../provider/testdata" }
serde-json-core = { version = "0.4", features = ["std"] }
[lib]
path = "src/lib.rs"
bench = false # This option is required for Benchmark CI
[[bench]]
name = "bench"
harness = false
[[test]]
name = "complex_word"
required-features = ["lstm"]
[features]
default = []
lstm = ["ndarray", "num-traits", "serde"]
serde = ["dep:serde", "zerovec/serde", "icu_codepointtrie/serde"]
datagen = ["serde", "databake", "zerovec/databake", "icu_codepointtrie/databake"]
lstm-grapheme = ["lstm", "unicode-segmentation"]