forked from unicode-org/icu4x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
293 lines (271 loc) · 13.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
# 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 ).
[workspace]
resolver = "2"
members = [
# KEEP IN SYNC WITH workspace.dependencies and tutorials/.cargo/config.toml
# Components
"components/calendar",
"components/casemap",
"components/collator",
"components/collections",
"components/collections/codepointtrie_builder",
"components/datetime",
"components/decimal",
"components/experimental",
"components/icu",
"components/list",
"components/locid_transform",
"components/locid",
"components/normalizer",
"components/plurals",
"components/properties",
"components/segmenter",
"components/timezone",
# FFI
"ffi/capi",
"ffi/ecma402",
"ffi/freertos",
"ffi/harfbuzz",
# Provider
"provider/adapters",
"provider/blob",
"provider/core",
"provider/core/macros",
"provider/datagen",
"provider/fs",
# Baked data
"provider/baked/calendar",
"provider/baked/casemap",
"provider/baked/collator",
"provider/baked/datetime",
"provider/baked/decimal",
"provider/baked/list",
"provider/baked/locid_transform",
"provider/baked/normalizer",
"provider/baked/plurals",
"provider/baked/properties",
"provider/baked/segmenter",
"provider/baked/timezone",
# Utils
"utils/bies",
"utils/calendrical_calculations",
"utils/crlify",
"utils/databake",
"utils/databake/derive",
"utils/deduplicating_array",
"utils/fixed_decimal",
"utils/ixdtf",
"utils/litemap",
"utils/pattern",
"utils/resb",
"utils/tinystr",
"utils/tzif",
"utils/writeable",
"utils/yoke",
"utils/yoke/derive",
"utils/zerofrom",
"utils/zerofrom/derive",
"utils/zerotrie",
"utils/zerovec",
"utils/zerovec/derive",
# Tools
"tools/bakeddata-scripts",
"tools/benchmark/binsize",
"tools/benchmark/macros",
"tools/benchmark/memory",
"tools/depcheck",
"tools/diplomat-gen",
"tools/ffi_coverage",
"tools/testdata-scripts",
"tools/md-tests",
"tools/graveyard",
]
# Note: Workspaces in subdirectories, such as tutorials/crates, are
# implicitly excluded from the main workspace.
exclude = [
# Testdata will still be published in the 1.x stream, but is deprecated
# and we don't use it anymore. As we don't want to keep the actual data
# in the repo it doesn't build without running `cargo make testdata-legacy`
# first.
"provider/testdata",
# Tutorials are tested outside the workspace to simulate external users
"tutorials",
]
[workspace.package]
version = "1.4.0"
rust-version = "1.67"
authors = ["The ICU4X Project Developers"]
edition = "2021"
repository = "https://github.com/unicode-org/icu4x"
homepage = "https://icu4x.unicode.org"
license = "Unicode-3.0"
categories = ["internationalization"]
include = [
"data/**/*",
"src/**/*",
"examples/**/*",
"benches/**/*",
"tests/**/*",
"Cargo.toml",
"LICENSE",
"README.md",
]
[workspace.dependencies]
# KEEP IN SYNC WITH workspace.members and tutorials/.cargo/config.toml
# Components
icu = { version = "~1.4.0", path = "components/icu", default-features = false }
icu_calendar = { version = "~1.4.0", path = "components/calendar", default-features = false }
icu_casemap = { version = "~1.4.0", path = "components/casemap", default-features = false }
icu_collator = { version = "~1.4.0", path = "components/collator", default-features = false }
icu_collections = { version = "~1.4.0", path = "components/collections", default-features = false }
icu_codepointtrie_builder = { version = "0.3.7", path = "components/collections/codepointtrie_builder", default-features = false }
icu_datetime = { version = "~1.4.0", path = "components/datetime", default-features = false }
icu_decimal = { version = "~1.4.0", path = "components/decimal", default-features = false }
icu_experimental = { version = "0.0.0", path = "components/experimental", default-features = false }
icu_list = { version = "~1.4.0", path = "components/list", default-features = false }
icu_locid = { version = "~1.4.0", path = "components/locid", default-features = false }
icu_locid_transform = { version = "~1.4.0", path = "components/locid_transform", default-features = false }
icu_normalizer = { version = "~1.4.0", path = "components/normalizer", default-features = false }
icu_plurals = { version = "~1.4.0", path = "components/plurals", default-features = false }
icu_properties = { version = "~1.4.0", path = "components/properties", default-features = false }
icu_segmenter = { version = "~1.4.0", path = "components/segmenter", default-features = false }
icu_timezone = { version = "~1.4.0", path = "components/timezone", default-features = false }
# FFI
icu_capi = { version = "~1.4.0", path = "ffi/capi", default-features = false }
icu4x_ecma402 = { version = "0.8.1", path = "ffi/ecma402", default-features = false }
icu_freertos = { version = "~1.4.0", path = "ffi/freertos", default-features = false }
icu_harfbuzz = { version = "~0.1.1", path = "ffi/harfbuzz", default-features = false }
# Provider
icu_datagen = { version = "~1.4.0", path = "provider/datagen", default-features = false }
icu_provider = { version = "~1.4.0", path = "provider/core", default-features = false }
icu_provider_macros = { version = "~1.4.0", path = "provider/core/macros", default-features = false }
icu_provider_adapters = { version = "~1.4.0", path = "provider/adapters", default-features = false }
icu_provider_blob = { version = "~1.4.0", path = "provider/blob", default-features = false }
icu_provider_fs = { version = "~1.4.0", path = "provider/fs/", default-features = false }
# Baked data
icu_calendar_data = { version = "~1.4.0", path = "provider/baked/calendar", default-features = false }
icu_casemap_data = { version = "~1.4.0", path = "provider/baked/casemap", default-features = false }
icu_collator_data = { version = "~1.4.0", path = "provider/baked/collator", default-features = false }
icu_datetime_data = { version = "~1.4.0", path = "provider/baked/datetime", default-features = false }
icu_decimal_data = { version = "~1.4.0", path = "provider/baked/decimal", default-features = false }
icu_list_data = { version = "~1.4.0", path = "provider/baked/list", default-features = false }
icu_locid_transform_data = { version = "~1.4.0", path = "provider/baked/locid_transform", default-features = false }
icu_normalizer_data = { version = "~1.4.0", path = "provider/baked/normalizer", default-features = false }
icu_plurals_data = { version = "~1.4.0", path = "provider/baked/plurals", default-features = false }
icu_properties_data = { version = "~1.4.0", path = "provider/baked/properties", default-features = false }
icu_segmenter_data = { version = "~1.4.0", path = "provider/baked/segmenter", default-features = false }
icu_timezone_data = { version = "~1.4.0", path = "provider/baked/timezone", default-features = false }
icu_experimental_data = { version = "0.0.0", path = "provider/baked/experimental", default-features = false }
# Utils
bies = { version = "0.2.2", path = "utils/bies", default-features = false }
calendrical_calculations = { version = "0.1.0", path = "utils/calendrical_calculations", default-features = false }
crlify = { version = "1.0.3", path = "utils/crlify", default-features = false }
databake = { version = "0.1.7", path = "utils/databake", default-features = false }
databake-derive = { version = "0.1.7", path = "utils/databake/derive", default-features = false }
deduplicating_array = { version = "0.1.5", path = "utils/deduplicating_array", default-features = false }
fixed_decimal = { version = "0.5.5", path = "utils/fixed_decimal", default-features = false }
icu_pattern = { version = "0.1.5", path = "utils/pattern", default-features = false }
ixdtf = { version = "0.1.1", path = "utils/ixdtf", default-features = false }
litemap = { version = "0.7.2", path = "utils/litemap", default-features = false }
tinystr = { version = "0.7.4", path = "utils/tinystr", default-features = false }
tzif = { version = "0.0.0", path = "utils/tzif", default-features = false }
writeable = { version = "0.5.4", path = "utils/writeable/", default-features = false }
yoke = { version = "0.7.3", path = "utils/yoke", default-features = false }
yoke-derive = { version = "0.7.3", path = "utils/yoke/derive", default-features = false }
zerofrom = { version = "0.1.2", path = "utils/zerofrom", default-features = false }
zerofrom-derive = { version = "0.1.2", path = "utils/zerofrom/derive", default-features = false }
zerotrie = { version = "0.1.2", path = "utils/zerotrie", default-features = false }
zerovec = { version = "0.10.1", path = "utils/zerovec", default-features = false }
zerovec-derive = { version = "0.10.1", path = "utils/zerovec/derive", default-features = false }
# Tools
icu_benchmark_macros = { path = "tools/benchmark/macros" }
# icu_benchmark_binsize never used as a dep
# icu_benchmark_memory never used as a dep
# depcheck never used as a dep
# ffi_coverage never used as a dep
# testdata-scripts never used as a dep
# The version here can either be a `version = ".."` spec or `git = "https://github.com/rust-diplomat/diplomat", rev = ".."`
# Diplomat must be published preceding a new ICU4X release but may use git versions in between
diplomat = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "3167e39e89ae612233706f1ade3d9e8a5c6ad358" }
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "3167e39e89ae612233706f1ade3d9e8a5c6ad358" }
diplomat_core = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "3167e39e89ae612233706f1ade3d9e8a5c6ad358" }
diplomat-tool = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "3167e39e89ae612233706f1ade3d9e8a5c6ad358" }
# External deps from crates.io
bincode = { version = "1.3.1", default-features = false }
clap = { version = "4.2.0", default-features = false }
combine = { version = "4.3.1", default-features = false }
core_maths = { version = "0.1.0", default-features = false }
displaydoc = { version = "0.2.3", default-features = false }
either = { version = "1.9.0", default-features = false }
elsa = { version = "1.10.0", default-features = false }
erased-serde = { version = "0.3.11", default-features = false }
eyre = { version = "0.6.0", default-features = false }
indexmap = { version = "1.0.0", default-features = false }
itertools = { version = "0.10.3", default-features = false}
libc_alloc = { version = "1.0.6", default-features = false }
log = { version = "0.4.17", default-features = false }
memchr = { version = "2.6.0", default-features = false }
ndarray = { version = "0.15.0", default-features = false }
nom = { version = "7.0.0", default-features = false }
num-bigint = { version = "0.4.3", default-features = false }
num-rational = { version = "0.4.0", default-features = false }
num-traits = { version = "0.2.0", default-features = false }
once_cell = {version = "1.15.0", default-features = false}
postcard = { version = "1.0.1", default-features = false }
proc-macro2 = { version = "1.0.61", default-features = false }
quote = { version = "1.0.28", default-features = false }
rayon = { version = "1.3.0", default-features = false }
regex-automata = { version = "0.2.0", default-features = false }
ryu = { version = "1.0.5", default-features = false }
serde = { version = "1.0.110", default-features = false }
serde_json = { version = "1.0.45", default-features = false, features = ["alloc"] } # requires either alloc or std to build
serde-aux = { version = "4.0.0", default-features = false }
serde-json-core = { version = "0.4.0", default-features = false }
simple_logger = { version = "4.0.0", default-features = false }
smallvec = { version = "1.10.0", default-features = false }
stable_deref_trait = { version = "1.2.0", default-features = false }
syn = { version = "2.0.21", default-features = false }
synstructure = { version = "0.13.0", default-features = false }
toml = { version = "0.5.8", default-features = false }
twox-hash = { version = "1.4.2", default-features = false }
unicode-bidi = { version = "0.3.11", default-features = false }
ureq = { version = "2.3.0", default-features = false }
utf16_iter = { version = "1.0.2", default-features = false }
utf8_iter = { version = "1.0.2", default-features = false }
wasmi = { version = "0.31.2", default-features = false }
write16 = { version = "1.0.0", default-features = false }
zip = { version = "0.6.0", default-features = false }
## Dev only
arraystring = "0.3.0"
arrayvec = "0.7.2"
atoi = "1.0.0"
criterion = "0.5.0"
detone = "1.0.0"
getrandom = "0.2"
iai = "0.1.1"
rand = "0.8"
rand_distr = "0.4"
rand_pcg = "0.3"
rkyv = "0.7"
walkdir = "2.3.2"
# Size optimized builds
[profile.release-opt-size]
inherits = "release"
lto = true
opt-level = "s"
panic = "abort"
codegen-units = 1
# Builds with debug metadata but not debug assertions
# for testing GIGO code paths
[profile.dev-without-assertions]
inherits = "dev"
debug-assertions = false
[profile.bench]
lto = true
# Enable debug information specifically for memory profiling.
# https://docs.rs/dhat/0.2.1/dhat/#configuration
[profile.bench-memory]
inherits = "bench"
debug = true