| 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_datetime" |
| 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 = "Human-readable formatting of dates, times, and time zones in hundreds of locales" |
| 36 |
homepage = "https://icu4x.unicode.org" |
| 37 |
readme = "README.md" |
| 38 |
keywords = [ |
| 39 |
"unicode", |
| 40 |
"formatting", |
| 41 |
"date", |
| 42 |
"time", |
| 43 |
] |
| 44 |
categories = [ |
| 45 |
"internationalization", |
| 46 |
"localization", |
| 47 |
"no-std", |
| 48 |
"embedded", |
| 49 |
] |
| 50 |
license = "Unicode-3.0" |
| 51 |
repository = "https://github.com/unicode-org/icu4x" |
| 52 |
resolver = "2" |
| 53 |
|
| 54 |
[package.metadata.docs.rs] |
| 55 |
all-features = true |
| 56 |
|
| 57 |
[package.metadata.cargo-all-features] |
| 58 |
skip_optional_dependencies = true |
| 59 |
max_combination_size = 3 |
| 60 |
|
| 61 |
[package.metadata.cargo-semver-checks.lints] |
| 62 |
workspace = true |
| 63 |
|
| 64 |
[features] |
| 65 |
compiled_data = [ |
| 66 |
"dep:icu_datetime_data", |
| 67 |
"icu_calendar/compiled_data", |
| 68 |
"icu_decimal/compiled_data", |
| 69 |
"icu_plurals/compiled_data", |
| 70 |
"icu_time/compiled_data", |
| 71 |
"dep:icu_locale_fallback", |
| 72 |
"icu_locale_fallback?/compiled_data", |
| 73 |
"icu_provider/baked", |
| 74 |
] |
| 75 |
datagen = [ |
| 76 |
"dep:databake", |
| 77 |
"dep:smallvec", |
| 78 |
"icu_calendar/datagen", |
| 79 |
"icu_pattern/databake", |
| 80 |
"icu_plurals/datagen", |
| 81 |
"icu_time/datagen", |
| 82 |
"icu_provider/export", |
| 83 |
"serde", |
| 84 |
] |
| 85 |
default = [ |
| 86 |
"compiled_data", |
| 87 |
"ixdtf", |
| 88 |
] |
| 89 |
ixdtf = [ |
| 90 |
"icu_time/ixdtf", |
| 91 |
"icu_calendar/ixdtf", |
| 92 |
] |
| 93 |
logging = ["icu_calendar/logging"] |
| 94 |
serde = [ |
| 95 |
"dep:serde", |
| 96 |
"icu_calendar/serde", |
| 97 |
"icu_decimal/serde", |
| 98 |
"icu_pattern/serde", |
| 99 |
"icu_plurals/serde", |
| 100 |
"icu_provider/alloc", |
| 101 |
"icu_provider/serde", |
| 102 |
"icu_time/serde", |
| 103 |
"smallvec?/serde", |
| 104 |
"tinystr/serde", |
| 105 |
"potential_utf/serde", |
| 106 |
"zerovec/serde", |
| 107 |
"dep:zerotrie", |
| 108 |
] |
| 109 |
unstable = ["icu_time/unstable"] |
| 110 |
unstable_chrono_0_4 = [ |
| 111 |
"dep:chrono", |
| 112 |
"icu_time/unstable_chrono_0_4", |
| 113 |
"icu_calendar/unstable_chrono_0_4", |
| 114 |
] |
| 115 |
unstable_jiff_0_2 = [ |
| 116 |
"dep:jiff", |
| 117 |
"icu_time/unstable_jiff_0_2", |
| 118 |
"icu_calendar/unstable_jiff_0_2", |
| 119 |
] |
| 120 |
unstable_time_0_3 = [ |
| 121 |
"dep:time", |
| 122 |
"icu_time/unstable_time_0_3", |
| 123 |
"icu_calendar/unstable_time_0_3", |
| 124 |
] |
| 125 |
|
| 126 |
[lib] |
| 127 |
name = "icu_datetime" |
| 128 |
path = "src/lib.rs" |
| 129 |
bench = false |
| 130 |
|
| 131 |
[[test]] |
| 132 |
name = "datetime" |
| 133 |
path = "tests/datetime.rs" |
| 134 |
required-features = [ |
| 135 |
"unstable", |
| 136 |
"compiled_data", |
| 137 |
"serde", |
| 138 |
] |
| 139 |
|
| 140 |
[[test]] |
| 141 |
name = "hijri_iran" |
| 142 |
path = "tests/hijri_iran.rs" |
| 143 |
|
| 144 |
[[test]] |
| 145 |
name = "pattern_serialization" |
| 146 |
path = "tests/pattern_serialization.rs" |
| 147 |
|
| 148 |
[[test]] |
| 149 |
name = "range" |
| 150 |
path = "tests/range.rs" |
| 151 |
required-features = [ |
| 152 |
"compiled_data", |
| 153 |
"unstable", |
| 154 |
] |
| 155 |
|
| 156 |
[[test]] |
| 157 |
name = "resolved_components" |
| 158 |
path = "tests/resolved_components.rs" |
| 159 |
required-features = [ |
| 160 |
"unstable", |
| 161 |
"compiled_data", |
| 162 |
] |
| 163 |
|
| 164 |
[[test]] |
| 165 |
name = "simple_test" |
| 166 |
path = "tests/simple_test.rs" |
| 167 |
required-features = ["compiled_data"] |
| 168 |
|
| 169 |
[[test]] |
| 170 |
name = "skeleton_serialization" |
| 171 |
path = "tests/skeleton_serialization.rs" |
| 172 |
required-features = ["unstable"] |
| 173 |
|
| 174 |
[[bench]] |
| 175 |
name = "datetime" |
| 176 |
path = "benches/datetime.rs" |
| 177 |
harness = false |
| 178 |
required-features = [ |
| 179 |
"compiled_data", |
| 180 |
"serde", |
| 181 |
"unstable", |
| 182 |
] |
| 183 |
|
| 184 |
[[bench]] |
| 185 |
name = "pattern" |
| 186 |
path = "benches/pattern.rs" |
| 187 |
harness = false |
| 188 |
required-features = [ |
| 189 |
"serde", |
| 190 |
"unstable", |
| 191 |
] |
| 192 |
|
| 193 |
[dependencies.chrono] |
| 194 |
version = "0.4" |
| 195 |
optional = true |
| 196 |
default-features = false |
| 197 |
|
| 198 |
[dependencies.databake] |
| 199 |
version = "0.2.0" |
| 200 |
features = ["derive"] |
| 201 |
optional = true |
| 202 |
default-features = false |
| 203 |
|
| 204 |
[dependencies.displaydoc] |
| 205 |
version = "0.2.3" |
| 206 |
default-features = false |
| 207 |
|
| 208 |
[dependencies.fixed_decimal] |
| 209 |
version = "0.7.2" |
| 210 |
default-features = false |
| 211 |
|
| 212 |
[dependencies.icu_calendar] |
| 213 |
version = "~2.3.0" |
| 214 |
default-features = false |
| 215 |
|
| 216 |
[dependencies.icu_datetime_data] |
| 217 |
version = "~2.3.0" |
| 218 |
optional = true |
| 219 |
default-features = false |
| 220 |
|
| 221 |
[dependencies.icu_decimal] |
| 222 |
version = "~2.3.0" |
| 223 |
default-features = false |
| 224 |
|
| 225 |
[dependencies.icu_locale_core] |
| 226 |
version = "2.3.0" |
| 227 |
default-features = false |
| 228 |
|
| 229 |
[dependencies.icu_locale_fallback] |
| 230 |
version = "~2.3.0" |
| 231 |
optional = true |
| 232 |
default-features = false |
| 233 |
|
| 234 |
[dependencies.icu_pattern] |
| 235 |
version = "0.5.0" |
| 236 |
features = [ |
| 237 |
"zerovec", |
| 238 |
"alloc", |
| 239 |
] |
| 240 |
default-features = false |
| 241 |
|
| 242 |
[dependencies.icu_plurals] |
| 243 |
version = "~2.3.0" |
| 244 |
default-features = false |
| 245 |
|
| 246 |
[dependencies.icu_provider] |
| 247 |
version = "2.3.0" |
| 248 |
default-features = false |
| 249 |
|
| 250 |
[dependencies.icu_time] |
| 251 |
version = "~2.3.0" |
| 252 |
features = ["alloc"] |
| 253 |
default-features = false |
| 254 |
|
| 255 |
[dependencies.jiff] |
| 256 |
version = "0.2" |
| 257 |
optional = true |
| 258 |
default-features = false |
| 259 |
|
| 260 |
[dependencies.potential_utf] |
| 261 |
version = "0.1.3" |
| 262 |
features = [ |
| 263 |
"alloc", |
| 264 |
"zerovec", |
| 265 |
] |
| 266 |
default-features = false |
| 267 |
|
| 268 |
[dependencies.serde] |
| 269 |
version = "1.0.220" |
| 270 |
features = [ |
| 271 |
"derive", |
| 272 |
"alloc", |
| 273 |
] |
| 274 |
optional = true |
| 275 |
default-features = false |
| 276 |
|
| 277 |
[dependencies.smallvec] |
| 278 |
version = "1.10.0" |
| 279 |
optional = true |
| 280 |
default-features = false |
| 281 |
|
| 282 |
[dependencies.time] |
| 283 |
version = "0.3" |
| 284 |
optional = true |
| 285 |
default-features = false |
| 286 |
|
| 287 |
[dependencies.tinystr] |
| 288 |
version = "0.8.4" |
| 289 |
features = [ |
| 290 |
"alloc", |
| 291 |
"zerovec", |
| 292 |
] |
| 293 |
default-features = false |
| 294 |
|
| 295 |
[dependencies.writeable] |
| 296 |
version = "0.6.4" |
| 297 |
default-features = false |
| 298 |
|
| 299 |
[dependencies.zerotrie] |
| 300 |
version = "0.2.5" |
| 301 |
features = ["alloc"] |
| 302 |
optional = true |
| 303 |
default-features = false |
| 304 |
|
| 305 |
[dependencies.zerovec] |
| 306 |
version = "0.11.7" |
| 307 |
features = [ |
| 308 |
"alloc", |
| 309 |
"yoke", |
| 310 |
] |
| 311 |
default-features = false |
| 312 |
|
| 313 |
[dev-dependencies.bincode] |
| 314 |
version = "1.3.1" |
| 315 |
|
| 316 |
[dev-dependencies.calendrical_calculations] |
| 317 |
version = "0.2.4" |
| 318 |
default-features = false |
| 319 |
|
| 320 |
[dev-dependencies.chrono-tz] |
| 321 |
version = "0.10" |
| 322 |
default-features = false |
| 323 |
|
| 324 |
[dev-dependencies.jiff] |
| 325 |
version = "0.2" |
| 326 |
features = [ |
| 327 |
"std", |
| 328 |
"tzdb-bundle-always", |
| 329 |
] |
| 330 |
default-features = false |
| 331 |
|
| 332 |
[dev-dependencies.serde] |
| 333 |
version = "1.0.220" |
| 334 |
features = ["derive"] |
| 335 |
default-features = false |
| 336 |
|
| 337 |
[dev-dependencies.serde_json] |
| 338 |
version = "1.0.45" |
| 339 |
|
| 340 |
[dev-dependencies.ureq] |
| 341 |
version = "3.0.0" |
| 342 |
|
| 343 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 344 |
version = "0.5.0" |
| 345 |
|
| 346 |
[lints.clippy] |
| 347 |
alloc_instead_of_core = "warn" |
| 348 |
bool_assert_comparison = "allow" |
| 349 |
branches_sharing_code = "warn" |
| 350 |
collection_is_never_read = "warn" |
| 351 |
crosspointer_transmute = "warn" |
| 352 |
dbg_macro = "warn" |
| 353 |
debug_assert_with_mut_call = "warn" |
| 354 |
doc_markdown = "warn" |
| 355 |
exhaustive_enums = "deny" |
| 356 |
exhaustive_structs = "deny" |
| 357 |
fn_to_numeric_cast_any = "warn" |
| 358 |
infinite_loop = "warn" |
| 359 |
large_stack_arrays = "warn" |
| 360 |
mismatching_type_param_order = "warn" |
| 361 |
missing_fields_in_debug = "warn" |
| 362 |
missing_transmute_annotations = "warn" |
| 363 |
negative_feature_names = "warn" |
| 364 |
or_fun_call = "warn" |
| 365 |
same_functions_in_if_condition = "warn" |
| 366 |
todo = "warn" |
| 367 |
transmute_bytes_to_str = "warn" |
| 368 |
transmute_int_to_bool = "warn" |
| 369 |
transmute_int_to_non_zero = "warn" |
| 370 |
transmute_ptr_to_ptr = "warn" |
| 371 |
transmute_ptr_to_ref = "warn" |
| 372 |
transmute_undefined_repr = "warn" |
| 373 |
transmutes_expressible_as_ptr_casts = "warn" |
| 374 |
trivially_copy_pass_by_ref = "deny" |
| 375 |
unnecessary_wraps = "warn" |
| 376 |
useless_transmute = "warn" |
| 377 |
wildcard_dependencies = "warn" |
| 378 |
|
| 379 |
[lints.rust] |
| 380 |
missing_debug_implementations = "deny" |
| 381 |
trivial_numeric_casts = "deny" |
| 382 |
unused_lifetimes = "warn" |
| 383 |
unused_macro_rules = "warn" |
| 384 |
unused_qualifications = "warn" |
| 385 |
|
| 386 |
[lints.rust.unexpected_cfgs] |
| 387 |
level = "warn" |
| 388 |
priority = 0 |
| 389 |
check-cfg = [ |
| 390 |
"cfg(icu4c_enable_renaming)", |
| 391 |
"cfg(needs_alloc_error_handler)", |
| 392 |
"cfg(icu4x_nightly_tests)", |
| 393 |
"cfg(icu4x_run_size_tests)", |
| 394 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 395 |
] |