| 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_calendar" |
| 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 = "Date APIs for Gregorian and non-Gregorian calendars" |
| 36 |
homepage = "https://icu4x.unicode.org" |
| 37 |
readme = "README.md" |
| 38 |
keywords = [ |
| 39 |
"unicode", |
| 40 |
"formatting", |
| 41 |
"date", |
| 42 |
] |
| 43 |
categories = [ |
| 44 |
"internationalization", |
| 45 |
"localization", |
| 46 |
"no-std", |
| 47 |
"embedded", |
| 48 |
] |
| 49 |
license = "Unicode-3.0" |
| 50 |
repository = "https://github.com/unicode-org/icu4x" |
| 51 |
resolver = "2" |
| 52 |
|
| 53 |
[package.metadata.docs.rs] |
| 54 |
all-features = true |
| 55 |
|
| 56 |
[package.metadata.cargo-all-features] |
| 57 |
max_combination_size = 3 |
| 58 |
|
| 59 |
[package.metadata.cargo-semver-checks.lints] |
| 60 |
workspace = true |
| 61 |
|
| 62 |
[features] |
| 63 |
alloc = [ |
| 64 |
"icu_locale_core/alloc", |
| 65 |
"tinystr/alloc", |
| 66 |
"serde?/alloc", |
| 67 |
] |
| 68 |
compiled_data = [ |
| 69 |
"dep:icu_calendar_data", |
| 70 |
"dep:icu_locale_fallback", |
| 71 |
"icu_locale_fallback?/compiled_data", |
| 72 |
"icu_provider/baked", |
| 73 |
] |
| 74 |
datagen = [ |
| 75 |
"serde", |
| 76 |
"dep:databake", |
| 77 |
"zerovec/databake", |
| 78 |
"tinystr/databake", |
| 79 |
"alloc", |
| 80 |
"icu_provider/export", |
| 81 |
"icu_locale_core/databake", |
| 82 |
] |
| 83 |
default = [ |
| 84 |
"compiled_data", |
| 85 |
"ixdtf", |
| 86 |
] |
| 87 |
ixdtf = ["dep:ixdtf"] |
| 88 |
logging = ["calendrical_calculations/logging"] |
| 89 |
serde = [ |
| 90 |
"dep:serde", |
| 91 |
"zerovec/serde", |
| 92 |
"tinystr/serde", |
| 93 |
"icu_provider/serde", |
| 94 |
"icu_locale_core/serde", |
| 95 |
] |
| 96 |
unstable = [] |
| 97 |
unstable_chrono_0_4 = ["dep:chrono"] |
| 98 |
unstable_jiff_0_2 = ["dep:jiff"] |
| 99 |
unstable_time_0_3 = ["dep:time"] |
| 100 |
|
| 101 |
[lib] |
| 102 |
name = "icu_calendar" |
| 103 |
path = "src/lib.rs" |
| 104 |
|
| 105 |
[[test]] |
| 106 |
name = "arithmetic" |
| 107 |
path = "tests/arithmetic.rs" |
| 108 |
required-features = ["ixdtf"] |
| 109 |
|
| 110 |
[[test]] |
| 111 |
name = "reference_year" |
| 112 |
path = "tests/reference_year.rs" |
| 113 |
|
| 114 |
[[test]] |
| 115 |
name = "reingold" |
| 116 |
path = "tests/reingold.rs" |
| 117 |
|
| 118 |
[[bench]] |
| 119 |
name = "common" |
| 120 |
path = "benches/common.rs" |
| 121 |
|
| 122 |
[[bench]] |
| 123 |
name = "convert" |
| 124 |
path = "benches/convert.rs" |
| 125 |
harness = false |
| 126 |
|
| 127 |
[[bench]] |
| 128 |
name = "date" |
| 129 |
path = "benches/date.rs" |
| 130 |
harness = false |
| 131 |
|
| 132 |
[[bench]] |
| 133 |
name = "until" |
| 134 |
path = "benches/until.rs" |
| 135 |
harness = false |
| 136 |
|
| 137 |
[dependencies.calendrical_calculations] |
| 138 |
version = "0.2.4" |
| 139 |
default-features = false |
| 140 |
|
| 141 |
[dependencies.chrono] |
| 142 |
version = "0.4" |
| 143 |
optional = true |
| 144 |
default-features = false |
| 145 |
|
| 146 |
[dependencies.databake] |
| 147 |
version = "0.2.0" |
| 148 |
features = ["derive"] |
| 149 |
optional = true |
| 150 |
default-features = false |
| 151 |
|
| 152 |
[dependencies.displaydoc] |
| 153 |
version = "0.2.3" |
| 154 |
default-features = false |
| 155 |
|
| 156 |
[dependencies.icu_calendar_data] |
| 157 |
version = "~2.3.0" |
| 158 |
optional = true |
| 159 |
default-features = false |
| 160 |
|
| 161 |
[dependencies.icu_locale_core] |
| 162 |
version = "2.3.0" |
| 163 |
default-features = false |
| 164 |
|
| 165 |
[dependencies.icu_locale_fallback] |
| 166 |
version = "~2.3.0" |
| 167 |
optional = true |
| 168 |
default-features = false |
| 169 |
|
| 170 |
[dependencies.icu_provider] |
| 171 |
version = "2.3.0" |
| 172 |
default-features = false |
| 173 |
|
| 174 |
[dependencies.ixdtf] |
| 175 |
version = "0.6.5" |
| 176 |
optional = true |
| 177 |
default-features = false |
| 178 |
|
| 179 |
[dependencies.jiff] |
| 180 |
version = "0.2" |
| 181 |
optional = true |
| 182 |
default-features = false |
| 183 |
|
| 184 |
[dependencies.serde] |
| 185 |
version = "1.0.220" |
| 186 |
features = ["derive"] |
| 187 |
optional = true |
| 188 |
default-features = false |
| 189 |
|
| 190 |
[dependencies.time] |
| 191 |
version = "0.3" |
| 192 |
optional = true |
| 193 |
default-features = false |
| 194 |
|
| 195 |
[dependencies.tinystr] |
| 196 |
version = "0.8.4" |
| 197 |
features = ["zerovec"] |
| 198 |
default-features = false |
| 199 |
|
| 200 |
[dependencies.zerovec] |
| 201 |
version = "0.11.7" |
| 202 |
features = ["derive"] |
| 203 |
default-features = false |
| 204 |
|
| 205 |
[dev-dependencies.insta] |
| 206 |
version = "1.38.0" |
| 207 |
|
| 208 |
[dev-dependencies.itertools] |
| 209 |
version = "0.14.0" |
| 210 |
|
| 211 |
[dev-dependencies.serde] |
| 212 |
version = "1.0.220" |
| 213 |
features = [ |
| 214 |
"derive", |
| 215 |
"alloc", |
| 216 |
] |
| 217 |
default-features = false |
| 218 |
|
| 219 |
[dev-dependencies.serde_json] |
| 220 |
version = "1.0.45" |
| 221 |
|
| 222 |
[dev-dependencies.simple_logger] |
| 223 |
version = "5.0.0" |
| 224 |
|
| 225 |
[dev-dependencies.time] |
| 226 |
version = "0.3" |
| 227 |
features = ["large-dates"] |
| 228 |
default-features = false |
| 229 |
|
| 230 |
[dev-dependencies.ureq] |
| 231 |
version = "3.0.0" |
| 232 |
|
| 233 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 234 |
version = "0.5.0" |
| 235 |
|
| 236 |
[lints.clippy] |
| 237 |
alloc_instead_of_core = "warn" |
| 238 |
bool_assert_comparison = "allow" |
| 239 |
branches_sharing_code = "warn" |
| 240 |
collection_is_never_read = "warn" |
| 241 |
crosspointer_transmute = "warn" |
| 242 |
dbg_macro = "warn" |
| 243 |
debug_assert_with_mut_call = "warn" |
| 244 |
doc_markdown = "warn" |
| 245 |
exhaustive_enums = "deny" |
| 246 |
exhaustive_structs = "deny" |
| 247 |
fn_to_numeric_cast_any = "warn" |
| 248 |
infinite_loop = "warn" |
| 249 |
large_stack_arrays = "warn" |
| 250 |
mismatching_type_param_order = "warn" |
| 251 |
missing_fields_in_debug = "warn" |
| 252 |
missing_transmute_annotations = "warn" |
| 253 |
negative_feature_names = "warn" |
| 254 |
or_fun_call = "warn" |
| 255 |
same_functions_in_if_condition = "warn" |
| 256 |
todo = "warn" |
| 257 |
transmute_bytes_to_str = "warn" |
| 258 |
transmute_int_to_bool = "warn" |
| 259 |
transmute_int_to_non_zero = "warn" |
| 260 |
transmute_ptr_to_ptr = "warn" |
| 261 |
transmute_ptr_to_ref = "warn" |
| 262 |
transmute_undefined_repr = "warn" |
| 263 |
transmutes_expressible_as_ptr_casts = "warn" |
| 264 |
trivially_copy_pass_by_ref = "deny" |
| 265 |
unnecessary_wraps = "warn" |
| 266 |
useless_transmute = "warn" |
| 267 |
wildcard_dependencies = "warn" |
| 268 |
|
| 269 |
[lints.rust] |
| 270 |
missing_debug_implementations = "deny" |
| 271 |
trivial_numeric_casts = "deny" |
| 272 |
unused_lifetimes = "warn" |
| 273 |
unused_macro_rules = "warn" |
| 274 |
unused_qualifications = "warn" |
| 275 |
|
| 276 |
[lints.rust.unexpected_cfgs] |
| 277 |
level = "warn" |
| 278 |
priority = 0 |
| 279 |
check-cfg = [ |
| 280 |
"cfg(icu4c_enable_renaming)", |
| 281 |
"cfg(needs_alloc_error_handler)", |
| 282 |
"cfg(icu4x_nightly_tests)", |
| 283 |
"cfg(icu4x_run_size_tests)", |
| 284 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 285 |
] |