forked from unicode-org/icu4x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
232 lines (212 loc) · 10.3 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
# 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 docs/tutorials/.cargo/config.toml
# Components
"components/calendar",
"components/casemap",
"components/collator",
"components/collections",
"components/collections/codepointtrie_builder",
"components/datetime",
"components/decimal",
"components/icu",
"components/list",
"components/locid_transform",
"components/locid",
"components/normalizer",
"components/plurals",
"components/properties",
"components/segmenter",
"components/timezone",
"experimental/components",
# FFI
"ffi/capi",
"ffi/freertos",
"experimental/ecma402",
"experimental/harfbuzz",
# Provider
"provider/adapters",
"provider/blob",
"provider/core",
"provider/datagen",
"provider/fs",
"provider/macros",
# 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/calendrical_calculations",
"utils/crlify",
"utils/databake",
"utils/databake/derive",
"utils/deduplicating_array",
"utils/fixed_decimal",
"utils/litemap",
"utils/pattern",
"utils/resb",
"utils/tinystr",
"utils/tzif",
"utils/writeable",
"utils/yoke",
"utils/yoke/derive",
"utils/zerofrom",
"utils/zerofrom/derive",
"utils/zerovec",
"utils/zerovec/derive",
"experimental/bies",
"experimental/ixdtf",
"experimental/zerotrie",
# 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",
]
# Note: Workspaces in subdirectories, such as docs/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
"docs",
]
[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-file = "LICENSE"
categories = ["internationalization"]
include = [
"data/**/*",
"src/**/*",
"examples/**/*",
"benches/**/*",
"tests/**/*",
"Cargo.toml",
"LICENSE",
"README.md",
]
[workspace.dependencies]
# KEEP IN SYNC WITH workspace.members and docs/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_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 }
icu_experimental = { version = "0.0.0", path = "experimental/components", default-features = false }
# FFI
icu_capi = { version = "~1.4.0", path = "ffi/capi", default-features = false }
icu_freertos = { version = "~1.4.0", path = "ffi/freertos", default-features = false }
icu4x_ecma402 = { version = "0.8.1", path = "experimental/ecma402", default-features = false }
icu_harfbuzz = { version = "~0.1.1", path = "experimental/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_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 }
icu_provider_macros = { version = "~1.4.0", path = "provider/macros", 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
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 }
litemap = { version = "0.7.2", path = "utils/litemap", default-features = false }
icu_pattern = { version = "0.1.5", path = "utils/pattern", 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 }
zerovec = { version = "0.10.1", path = "utils/zerovec", default-features = false }
zerovec-derive = { version = "0.10.1", path = "utils/zerovec/derive", default-features = false }
bies = { version = "0.2.2", path = "experimental/bies", default-features = false }
ixdtf = { version = "0.1.1", path = "experimental/ixdtf", default-features = false }
zerotrie = { version = "0.1.2", path = "experimental/zerotrie", 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 = "05ddab1026b3e10c3bd0d6f848f9067afec92a91" }
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "05ddab1026b3e10c3bd0d6f848f9067afec92a91" }
diplomat_core = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "05ddab1026b3e10c3bd0d6f848f9067afec92a91" }
diplomat-tool = { git = "https://github.com/rust-diplomat/diplomat.git", rev = "05ddab1026b3e10c3bd0d6f848f9067afec92a91" }
# 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