| 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_provider" |
| 16 |
version = "2.3.1" |
| 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 = "Trait and struct definitions for the ICU data provider" |
| 36 |
homepage = "https://icu4x.unicode.org" |
| 37 |
readme = "README.md" |
| 38 |
keywords = [ |
| 39 |
"data-loading", |
| 40 |
"data", |
| 41 |
] |
| 42 |
categories = [ |
| 43 |
"internationalization", |
| 44 |
"localization", |
| 45 |
"no-std", |
| 46 |
"embedded", |
| 47 |
] |
| 48 |
license = "Unicode-3.0" |
| 49 |
repository = "https://github.com/unicode-org/icu4x" |
| 50 |
resolver = "2" |
| 51 |
|
| 52 |
[package.metadata.docs.rs] |
| 53 |
all-features = true |
| 54 |
|
| 55 |
[package.metadata.cargo-all-features] |
| 56 |
denylist = ["macros"] |
| 57 |
max_combination_size = 3 |
| 58 |
|
| 59 |
[features] |
| 60 |
alloc = [ |
| 61 |
"icu_locale_core/alloc", |
| 62 |
"serde?/alloc", |
| 63 |
"yoke/alloc", |
| 64 |
"zerofrom/alloc", |
| 65 |
"zerovec/alloc", |
| 66 |
"zerotrie?/alloc", |
| 67 |
"dep:stable_deref_trait", |
| 68 |
"dep:writeable", |
| 69 |
] |
| 70 |
baked = [ |
| 71 |
"dep:zerotrie", |
| 72 |
"dep:writeable", |
| 73 |
] |
| 74 |
deserialize_bincode_1 = [ |
| 75 |
"serde", |
| 76 |
"dep:bincode", |
| 77 |
"std", |
| 78 |
] |
| 79 |
deserialize_json = [ |
| 80 |
"serde", |
| 81 |
"dep:serde_json", |
| 82 |
] |
| 83 |
deserialize_postcard_1 = [ |
| 84 |
"serde", |
| 85 |
"dep:postcard", |
| 86 |
] |
| 87 |
export = [ |
| 88 |
"serde", |
| 89 |
"dep:erased-serde", |
| 90 |
"dep:databake", |
| 91 |
"std", |
| 92 |
"sync", |
| 93 |
"dep:postcard", |
| 94 |
"zerovec/databake", |
| 95 |
] |
| 96 |
logging = ["dep:log"] |
| 97 |
serde = [ |
| 98 |
"dep:serde", |
| 99 |
"yoke/serde", |
| 100 |
] |
| 101 |
std = ["alloc"] |
| 102 |
sync = [] |
| 103 |
zerotrie = [] |
| 104 |
|
| 105 |
[lib] |
| 106 |
name = "icu_provider" |
| 107 |
path = "src/lib.rs" |
| 108 |
bench = false |
| 109 |
|
| 110 |
[[bench]] |
| 111 |
name = "data_locale_bench" |
| 112 |
path = "benches/data_locale_bench.rs" |
| 113 |
harness = false |
| 114 |
|
| 115 |
[dependencies.bincode] |
| 116 |
version = "1.3.1" |
| 117 |
optional = true |
| 118 |
|
| 119 |
[dependencies.databake] |
| 120 |
version = "0.2.0" |
| 121 |
features = ["derive"] |
| 122 |
optional = true |
| 123 |
default-features = false |
| 124 |
|
| 125 |
[dependencies.displaydoc] |
| 126 |
version = "0.2.3" |
| 127 |
default-features = false |
| 128 |
|
| 129 |
[dependencies.erased-serde] |
| 130 |
version = "0.4.0" |
| 131 |
optional = true |
| 132 |
|
| 133 |
[dependencies.icu_locale_core] |
| 134 |
version = "2.3.0" |
| 135 |
default-features = false |
| 136 |
|
| 137 |
[dependencies.log] |
| 138 |
version = "0.4.17" |
| 139 |
optional = true |
| 140 |
default-features = false |
| 141 |
|
| 142 |
[dependencies.postcard] |
| 143 |
version = "1.0.3" |
| 144 |
optional = true |
| 145 |
default-features = false |
| 146 |
|
| 147 |
[dependencies.serde] |
| 148 |
version = "1.0.220" |
| 149 |
features = ["derive"] |
| 150 |
optional = true |
| 151 |
default-features = false |
| 152 |
|
| 153 |
[dependencies.serde_json] |
| 154 |
version = "1.0.45" |
| 155 |
optional = true |
| 156 |
|
| 157 |
[dependencies.stable_deref_trait] |
| 158 |
version = "1.2.0" |
| 159 |
optional = true |
| 160 |
default-features = false |
| 161 |
|
| 162 |
[dependencies.writeable] |
| 163 |
version = "0.6.4" |
| 164 |
optional = true |
| 165 |
default-features = false |
| 166 |
|
| 167 |
[dependencies.yoke] |
| 168 |
version = "0.8.3" |
| 169 |
features = ["derive"] |
| 170 |
default-features = false |
| 171 |
|
| 172 |
[dependencies.zerofrom] |
| 173 |
version = "0.1.6" |
| 174 |
features = ["derive"] |
| 175 |
default-features = false |
| 176 |
|
| 177 |
[dependencies.zerotrie] |
| 178 |
version = "0.2.5" |
| 179 |
optional = true |
| 180 |
default-features = false |
| 181 |
|
| 182 |
[dependencies.zerovec] |
| 183 |
version = "0.11.8" |
| 184 |
features = ["derive"] |
| 185 |
default-features = false |
| 186 |
|
| 187 |
[dev-dependencies.serde_json] |
| 188 |
version = "1.0.45" |
| 189 |
|
| 190 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 191 |
version = "0.5.0" |
| 192 |
|
| 193 |
[lints.clippy] |
| 194 |
alloc_instead_of_core = "warn" |
| 195 |
bool_assert_comparison = "allow" |
| 196 |
branches_sharing_code = "warn" |
| 197 |
collection_is_never_read = "warn" |
| 198 |
crosspointer_transmute = "warn" |
| 199 |
dbg_macro = "warn" |
| 200 |
debug_assert_with_mut_call = "warn" |
| 201 |
doc_markdown = "warn" |
| 202 |
exhaustive_enums = "deny" |
| 203 |
exhaustive_structs = "deny" |
| 204 |
fn_to_numeric_cast_any = "warn" |
| 205 |
infinite_loop = "warn" |
| 206 |
large_stack_arrays = "warn" |
| 207 |
mismatching_type_param_order = "warn" |
| 208 |
missing_fields_in_debug = "warn" |
| 209 |
missing_transmute_annotations = "warn" |
| 210 |
negative_feature_names = "warn" |
| 211 |
or_fun_call = "warn" |
| 212 |
same_functions_in_if_condition = "warn" |
| 213 |
todo = "warn" |
| 214 |
transmute_bytes_to_str = "warn" |
| 215 |
transmute_int_to_bool = "warn" |
| 216 |
transmute_int_to_non_zero = "warn" |
| 217 |
transmute_ptr_to_ptr = "warn" |
| 218 |
transmute_ptr_to_ref = "warn" |
| 219 |
transmute_undefined_repr = "warn" |
| 220 |
transmutes_expressible_as_ptr_casts = "warn" |
| 221 |
trivially_copy_pass_by_ref = "deny" |
| 222 |
unnecessary_wraps = "warn" |
| 223 |
useless_transmute = "warn" |
| 224 |
wildcard_dependencies = "warn" |
| 225 |
|
| 226 |
[lints.rust] |
| 227 |
missing_debug_implementations = "deny" |
| 228 |
trivial_numeric_casts = "deny" |
| 229 |
unused_lifetimes = "warn" |
| 230 |
unused_macro_rules = "warn" |
| 231 |
unused_qualifications = "warn" |
| 232 |
|
| 233 |
[lints.rust.unexpected_cfgs] |
| 234 |
level = "warn" |
| 235 |
priority = 0 |
| 236 |
check-cfg = [ |
| 237 |
"cfg(icu4c_enable_renaming)", |
| 238 |
"cfg(needs_alloc_error_handler)", |
| 239 |
"cfg(icu4x_nightly_tests)", |
| 240 |
"cfg(icu4x_run_size_tests)", |
| 241 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 242 |
] |