-
Notifications
You must be signed in to change notification settings - Fork 176
/
Cargo.toml
327 lines (301 loc) · 13.4 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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
# 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
# ICU4X core
"components/locale_core",
"provider/core",
# Components
"components/calendar",
"components/casemap",
"components/collator",
"components/collections",
"components/collections/codepointtrie_builder",
"components/datetime",
"components/decimal",
"components/experimental",
"components/icu",
"components/list",
"components/locale",
"components/normalizer",
"components/pattern",
"components/plurals",
"components/properties",
"components/segmenter",
"components/timezone",
# FFI
"ffi/capi",
"ffi/ecma402",
"ffi/freertos",
"ffi/harfbuzz",
# Provider
"provider/adapters",
"provider/baked",
"provider/source",
"provider/blob",
"provider/core/macros",
"provider/export",
"provider/fs",
"provider/registry",
"provider/icu4x-datagen",
# Baked data
"provider/data/calendar",
"provider/data/casemap",
"provider/data/collator",
"provider/data/datetime",
"provider/data/decimal",
"provider/data/list",
"provider/data/locale",
"provider/data/normalizer",
"provider/data/plurals",
"provider/data/properties",
"provider/data/segmenter",
"provider/data/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/resb",
"utils/env_preferences",
"utils/tinystr",
"utils/tzif",
"utils/potential_utf",
"utils/writeable",
"utils/yoke",
"utils/yoke/derive",
"utils/zerofrom",
"utils/zerofrom/derive",
"utils/zerotrie",
"utils/zerovec",
"utils/zerovec/derive",
# Tools
"tools/benchmark/binsize",
"tools/benchmark/macros",
"tools/benchmark/memory",
"tools/make/bakeddata",
"tools/make/depcheck",
"tools/make/diplomat-coverage",
"tools/make/diplomat-gen",
"tools/make/download-repo-sources",
"tools/md-tests",
]
# Note: Workspaces in subdirectories, such as tutorials/crates, are
# implicitly excluded from the main workspace.
exclude = [
# Tutorials are tested outside the workspace to simulate external users
"tutorials",
# Don't publish the graveyard
"tools/graveyard"
]
[workspace.package]
version = "2.0.0-dev"
rust-version = "1.71.1"
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
# ICU4X core
# These use non-tilde deps, see https://github.com/unicode-org/icu4x/issues/4343
icu_locale_core = { version = "2.0.0-dev", path = "components/locale_core", default-features = false }
icu_provider = { version = "2.0.0-dev", path = "provider/core", default-features = false }
icu_pattern = { version = "0.3.0-dev", path = "components/pattern", default-features = false }
# Components
icu = { version = "~2.0.0-dev", path = "components/icu", default-features = false }
icu_calendar = { version = "~2.0.0-dev", path = "components/calendar", default-features = false }
icu_casemap = { version = "~2.0.0-dev", path = "components/casemap", default-features = false }
icu_collator = { version = "~2.0.0-dev", path = "components/collator", default-features = false }
icu_collections = { version = "~2.0.0-dev", path = "components/collections", default-features = false }
icu_codepointtrie_builder = { version = "~0.4.0-dev", path = "components/collections/codepointtrie_builder", default-features = false }
icu_datetime = { version = "~2.0.0-dev", path = "components/datetime", default-features = false }
icu_decimal = { version = "~2.0.0-dev", path = "components/decimal", default-features = false }
icu_experimental = { version = "~0.2.0-dev", path = "components/experimental", default-features = false }
icu_list = { version = "~2.0.0-dev", path = "components/list", default-features = false }
icu_locale = { version = "~2.0.0-dev", path = "components/locale", default-features = false }
icu_normalizer = { version = "~2.0.0-dev", path = "components/normalizer", default-features = false }
icu_plurals = { version = "~2.0.0-dev", path = "components/plurals", default-features = false }
icu_properties = { version = "~2.0.0-dev", path = "components/properties", default-features = false }
icu_segmenter = { version = "~2.0.0-dev", path = "components/segmenter", default-features = false }
icu_timezone = { version = "~2.0.0-dev", path = "components/timezone", default-features = false }
# FFI
icu_capi = { version = "~2.0.0-dev", path = "ffi/capi", default-features = false }
# icu4x_ecma402 never used as a dep
# icu_freertos never used as a dep
# icu_harfbuzz never used as a dep
# Provider
icu_provider_export = { version = "~2.0.0-dev", path = "provider/export", default-features = false }
icu_provider_source = { version = "~2.0.0-dev", path = "provider/source", default-features = false }
icu_provider_macros = { version = "~2.0.0-dev", path = "provider/core/macros", default-features = false }
icu_provider_adapters = { version = "~2.0.0-dev", path = "provider/adapters", default-features = false }
icu_provider_baked = { version = "~2.0.0-dev", path = "provider/baked", default-features = false }
icu_provider_blob = { version = "~2.0.0-dev", path = "provider/blob", default-features = false }
icu_provider_fs = { version = "~2.0.0-dev", path = "provider/fs", default-features = false }
icu_provider_registry = { version = "~2.0.0-dev", path = "provider/registry", default-features = false }
# Baked data
icu_calendar_data = { version = "~2.0.0-dev", path = "provider/data/calendar", default-features = false }
icu_casemap_data = { version = "~2.0.0-dev", path = "provider/data/casemap", default-features = false }
icu_collator_data = { version = "~2.0.0-dev", path = "provider/data/collator", default-features = false }
icu_datetime_data = { version = "~2.0.0-dev", path = "provider/data/datetime", default-features = false }
icu_decimal_data = { version = "~2.0.0-dev", path = "provider/data/decimal", default-features = false }
icu_list_data = { version = "~2.0.0-dev", path = "provider/data/list", default-features = false }
icu_locale_data = { version = "~2.0.0-dev", path = "provider/data/locale", default-features = false }
icu_normalizer_data = { version = "~2.0.0-dev", path = "provider/data/normalizer", default-features = false }
icu_plurals_data = { version = "~2.0.0-dev", path = "provider/data/plurals", default-features = false }
icu_properties_data = { version = "~2.0.0-dev", path = "provider/data/properties", default-features = false }
icu_segmenter_data = { version = "~2.0.0-dev", path = "provider/data/segmenter", default-features = false }
icu_timezone_data = { version = "~2.0.0-dev", path = "provider/data/timezone", default-features = false }
icu_experimental_data = { version = "~0.2.0-dev", path = "provider/data/experimental", default-features = false }
# Utils
bies = { version = "0.2.2", path = "utils/bies", default-features = false }
calendrical_calculations = { version = "0.1.1", path = "utils/calendrical_calculations", default-features = false }
crlify = { version = "1.0.4", path = "utils/crlify", default-features = false }
databake = { version = "0.1.9-dev", path = "utils/databake", default-features = false }
databake-derive = { version = "0.1.8", path = "utils/databake/derive", default-features = false }
deduplicating_array = { version = "0.1.6", path = "utils/deduplicating_array", default-features = false }
fixed_decimal = { version = "0.6.0-dev", path = "utils/fixed_decimal", default-features = false }
ixdtf = { version = "0.3.0-dev", path = "utils/ixdtf", default-features = false }
litemap = { version = "0.7.3", path = "utils/litemap", default-features = false }
tinystr = { version = "0.8.0-dev", path = "utils/tinystr", default-features = false }
tzif = { version = "0.3.0-dev", path = "utils/tzif", default-features = false }
potential_utf = { version = "0.1.0-dev", path = "utils/potential_utf", default-features = false }
writeable = { version = "0.5.6-dev", path = "utils/writeable", default-features = false }
yoke = { version = "0.7.5-dev", path = "utils/yoke", default-features = false }
yoke-derive = { version = "0.7.4", path = "utils/yoke/derive", default-features = false }
zerofrom = { version = "0.1.3", path = "utils/zerofrom", default-features = false }
zerofrom-derive = { version = "0.1.3", path = "utils/zerofrom/derive", default-features = false }
zerotrie = { version = "0.2.0-dev", path = "utils/zerotrie", default-features = false }
zerovec = { version = "0.11.0-dev", path = "utils/zerovec", default-features = false }
zerovec-derive = { version = "0.11.0-dev", path = "utils/zerovec/derive", default-features = false }
# Tools
icu_benchmark_macros = { path = "tools/benchmark/macros" }
# bench-binsize never used as a dep
# bench-memory never used as a dep
# make/* 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", rev = "b49d63ec2a50a456b4b6e9d072d3650dca153ff8" }
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat", rev = "b49d63ec2a50a456b4b6e9d072d3650dca153ff8" }
diplomat_core = { git = "https://github.com/rust-diplomat/diplomat", rev = "b49d63ec2a50a456b4b6e9d072d3650dca153ff8" }
diplomat-tool = { git = "https://github.com/rust-diplomat/diplomat", rev = "b49d63ec2a50a456b4b6e9d072d3650dca153ff8" }
# EXTERNAL DEPENDENCIES
#
# Due to semver-related constraints, we generally want to consume crates.io dependencies with
# default features, with some notable exceptions:
#
# 1. Dependencies of core library crates need to be `no_std`
# 2. Some crates have a lot of default features that pull in undesirable transitive deps
#
# We therefore have three groups for our crates.io dependencies.
## External Deps Group 1: Library deps except datagen. No default features.
# Keep in sync with allowlist.rs:
# BASIC_RUNTIME_DEPS
# BASIC_BUILD_DEPS
# EXTRA_SERDE_DEPS
# EXTRA_EXPERIMENTAL_DEPS
# EXTRA_LSTM_DEPS
# EXTRA_RYU_DEPS
# EXTRA_CAPI_DEPS
# EXTRA_BLOB_DEPS
# EXTRA_FS_DEPS
arrayvec = { version = "0.7.2", 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 }
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 }
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 }
postcard = { version = "1.0.1", default-features = false }
regex-automata = { version = "0.4.7", default-features = false }
ryu = { version = "1.0.5", default-features = false }
serde = { version = "1.0.110", default-features = false }
serde-json-core = { version = "0.4.0", default-features = false }
smallvec = { version = "1.10.0", default-features = false }
stable_deref_trait = { version = "1.2.0", default-features = false }
twox-hash = { version = "1.4.2", default-features = false }
unicode-bidi = { version = "0.3.11", default-features = false }
utf16_iter = { version = "1.0.2", default-features = false }
utf8_iter = { version = "1.0.2", default-features = false }
write16 = { version = "1.0.0", default-features = false }
## External Deps Group 2: Heavy Dev and Datagen deps. No default features.
zip = { version = "0.6.0", default-features = false }
serde-aux = { version = "4.0.0", default-features = false }
## External Deps Group 3: Dev and Datagen deps. Include default features.
arraystring = "0.3.0"
atoi = "1.0.0"
bincode = "1.3.1"
clap = "4.2.0"
combine = "4.3.1"
criterion = "0.5.0"
detone = "1.0.0"
elsa = "1.10.0"
erased-serde = "0.3.11"
eyre = "0.6.0"
getrandom = "0.2"
heck = "0.5"
iai = "0.1.1"
indexmap = "1.0.0"
itertools = "0.10.3"
ndarray = "0.15.0"
nom = "7.0.0"
parse-zoneinfo = "0.3.1"
proc-macro2 = "1.0.61"
quote = "1.0.28"
rand = "0.8"
rand_distr = "0.4"
rand_pcg = "0.3"
rayon = "1.3.0"
rkyv = "0.7"
rmp-serde = "1.2.0"
serde_json = "1.0.45"
simple_logger = "4.0.0"
syn = "2.0.21"
synstructure = "0.13.0"
toml = "0.5.8"
ureq = "2.3.0"
walkdir = "2.3.2"
wasmi = "0.31.2"
wat = "1"
# 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