Cargo.toml (6339B)
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 = "2021" 14 rust-version = "1.82" 15 name = "icu_capi" 16 version = "2.0.0" 17 authors = ["The ICU4X Project Developers"] 18 build = false 19 include = [ 20 "bindings/**/*", 21 "!bindings/dart/**/*", 22 "src/**/*", 23 "tests/**/*", 24 "Cargo.toml", 25 "LICENSE", 26 "README.md", 27 ] 28 autolib = false 29 autobins = false 30 autoexamples = false 31 autotests = false 32 autobenches = false 33 description = "C interface to ICU4X" 34 homepage = "https://icu4x.unicode.org" 35 readme = "README.md" 36 categories = ["internationalization"] 37 license = "Unicode-3.0" 38 repository = "https://github.com/unicode-org/icu4x" 39 40 [package.metadata.cargo-all-features] 41 denylist = [ 42 "looping_panic_handler", 43 "libc_alloc", 44 ] 45 max_combination_size = 2 46 47 [package.metadata.docs.rs] 48 all-features = true 49 50 [features] 51 any_provider = [] 52 buffer_provider = [ 53 "dep:icu_provider_blob", 54 "dep:serde", 55 "icu_calendar?/serde", 56 "icu_casemap?/serde", 57 "icu_collator?/serde", 58 "icu_datetime?/serde", 59 "icu_decimal?/serde", 60 "icu_list?/serde", 61 "icu_locale?/serde", 62 "icu_locale_core/serde", 63 "icu_normalizer?/serde", 64 "icu_plurals?/serde", 65 "icu_properties?/serde", 66 "icu_provider/serde", 67 "icu_provider_adapters/serde", 68 "icu_segmenter?/serde", 69 "icu_time?/serde", 70 "icu_experimental?/serde", 71 ] 72 calendar = [ 73 "dep:icu_calendar", 74 "dep:icu_time", 75 ] 76 casemap = ["dep:icu_casemap"] 77 collator = ["dep:icu_collator"] 78 compiled_data = [ 79 "icu_calendar?/compiled_data", 80 "icu_normalizer?/compiled_data", 81 "icu_properties?/compiled_data", 82 "icu_segmenter?/compiled_data", 83 ] 84 datetime = [ 85 "dep:icu_datetime", 86 "dep:icu_calendar", 87 "dep:icu_time", 88 "dep:icu_decimal", 89 "dep:icu_plurals", 90 "icu_datetime?/experimental", 91 ] 92 decimal = [ 93 "dep:icu_decimal", 94 "dep:fixed_decimal", 95 ] 96 default = [ 97 "compiled_data", 98 "default_components", 99 "logging", 100 "simple_logger", 101 "std", 102 ] 103 default_components = [ 104 "calendar", 105 "casemap", 106 "collator", 107 "datetime", 108 "decimal", 109 "list", 110 "locale", 111 "normalizer", 112 "plurals", 113 "properties", 114 "segmenter", 115 "timezone", 116 ] 117 experimental = ["dep:icu_experimental"] 118 libc_alloc = ["dep:libc_alloc"] 119 list = ["dep:icu_list"] 120 locale = ["dep:icu_locale"] 121 logging = [ 122 "icu_provider/logging", 123 "dep:log", 124 "diplomat-runtime/log", 125 "std", 126 ] 127 looping_panic_handler = [] 128 normalizer = [ 129 "dep:icu_normalizer", 130 "icu_normalizer?/utf8_iter", 131 "icu_normalizer?/utf16_iter", 132 ] 133 plurals = [ 134 "dep:icu_plurals", 135 "dep:fixed_decimal", 136 ] 137 properties = [ 138 "dep:icu_properties", 139 "dep:icu_collections", 140 "dep:unicode-bidi", 141 ] 142 provider_fs = [ 143 "dep:icu_provider_fs", 144 "buffer_provider", 145 "std", 146 ] 147 segmenter = ["dep:icu_segmenter"] 148 simple_logger = [ 149 "dep:simple_logger", 150 "logging", 151 ] 152 std = [] 153 timezone = [ 154 "dep:icu_time", 155 "dep:icu_calendar", 156 ] 157 158 [lib] 159 name = "icu_capi" 160 path = "src/lib.rs" 161 162 [dependencies.diplomat] 163 version = "0.11.0" 164 default-features = false 165 166 [dependencies.diplomat-runtime] 167 version = "0.11.0" 168 default-features = false 169 170 [dependencies.fixed_decimal] 171 version = "0.7.0" 172 features = ["ryu"] 173 optional = true 174 default-features = false 175 176 [dependencies.icu_calendar] 177 version = "~2.0.0" 178 features = [ 179 "alloc", 180 "ixdtf", 181 ] 182 optional = true 183 default-features = false 184 185 [dependencies.icu_casemap] 186 version = "~2.0.0" 187 optional = true 188 default-features = false 189 190 [dependencies.icu_collator] 191 version = "~2.0.0" 192 optional = true 193 default-features = false 194 195 [dependencies.icu_collections] 196 version = "~2.0.0" 197 optional = true 198 default-features = false 199 200 [dependencies.icu_datetime] 201 version = "~2.0.0" 202 optional = true 203 default-features = false 204 205 [dependencies.icu_decimal] 206 version = "~2.0.0" 207 optional = true 208 default-features = false 209 210 [dependencies.icu_experimental] 211 version = "~0.3.0" 212 optional = true 213 default-features = false 214 215 [dependencies.icu_list] 216 version = "~2.0.0" 217 optional = true 218 default-features = false 219 220 [dependencies.icu_locale] 221 version = "~2.0.0" 222 optional = true 223 default-features = false 224 225 [dependencies.icu_locale_core] 226 version = "2.0.0" 227 default-features = false 228 229 [dependencies.icu_normalizer] 230 version = "~2.0.0" 231 optional = true 232 default-features = false 233 234 [dependencies.icu_plurals] 235 version = "~2.0.0" 236 optional = true 237 default-features = false 238 239 [dependencies.icu_properties] 240 version = "~2.0.0" 241 features = [ 242 "alloc", 243 "unicode_bidi", 244 ] 245 optional = true 246 default-features = false 247 248 [dependencies.icu_provider] 249 version = "2.0.0" 250 default-features = false 251 252 [dependencies.icu_provider_adapters] 253 version = "~2.0.0" 254 default-features = false 255 256 [dependencies.icu_provider_blob] 257 version = "~2.0.0" 258 optional = true 259 default-features = false 260 261 [dependencies.icu_segmenter] 262 version = "~2.0.0" 263 features = ["auto"] 264 optional = true 265 default-features = false 266 267 [dependencies.icu_time] 268 version = "~2.0.0" 269 features = [ 270 "alloc", 271 "ixdtf", 272 ] 273 optional = true 274 default-features = false 275 276 [dependencies.log] 277 version = "0.4.17" 278 optional = true 279 default-features = false 280 281 [dependencies.potential_utf] 282 version = "0.1.1" 283 features = ["writeable"] 284 default-features = false 285 286 [dependencies.serde] 287 version = "1.0.110" 288 optional = true 289 default-features = false 290 291 [dependencies.tinystr] 292 version = "0.8.0" 293 default-features = false 294 295 [dependencies.unicode-bidi] 296 version = "0.3.11" 297 optional = true 298 default-features = false 299 300 [dependencies.writeable] 301 version = "0.6.0" 302 default-features = false 303 304 [dependencies.zerovec] 305 version = "0.11.1" 306 default-features = false 307 308 [target.'cfg(not(any(target_arch = "wasm32", target_os = "none")))'.dependencies.icu_provider_fs] 309 version = "~2.0.0" 310 optional = true 311 default-features = false 312 313 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc_alloc] 314 version = "1.0.6" 315 features = ["global"] 316 optional = true 317 default-features = false 318 319 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.simple_logger] 320 version = "5.0.0" 321 optional = true