# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.83"
name = "icu_capi"
version = "2.1.1"
authors = ["The ICU4X Project Developers"]
build = false
include = [
    "bindings/**/*",
    "!bindings/dart/**/*",
    "src/**/*",
    "tests/**/*",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "C interface to ICU4X"
homepage = "https://icu4x.unicode.org"
readme = "README.md"
categories = ["internationalization"]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo-all-features]
denylist = [
    "looping_panic_handler",
    "libc_alloc",
]
max_combination_size = 2

[package.metadata.cargo-semver-checks.lints]
workspace = true

[features]
any_provider = []
buffer_provider = [
    "dep:icu_provider_blob",
    "icu_calendar?/serde",
    "icu_casemap?/serde",
    "icu_collator?/serde",
    "icu_datetime?/serde",
    "icu_decimal?/serde",
    "icu_list?/serde",
    "icu_locale?/serde",
    "icu_locale_core/serde",
    "icu_normalizer?/serde",
    "icu_plurals?/serde",
    "icu_properties?/serde",
    "icu_provider/serde",
    "icu_segmenter?/serde",
    "icu_time?/serde",
    "icu_experimental?/serde",
]
calendar = [
    "dep:icu_calendar",
    "dep:icu_time",
    "dep:tinystr",
]
casemap = ["dep:icu_casemap"]
collator = ["dep:icu_collator"]
compiled_data = [
    "icu_calendar?/compiled_data",
    "icu_normalizer?/compiled_data",
    "icu_properties?/compiled_data",
    "icu_segmenter?/compiled_data",
]
datetime = [
    "calendar",
    "dep:icu_datetime",
    "icu_datetime/experimental",
]
decimal = [
    "dep:icu_decimal",
    "dep:fixed_decimal",
    "dep:zerovec",
]
default = [
    "compiled_data",
    "default_components",
    "logging",
    "simple_logger",
    "std",
]
default_components = [
    "calendar",
    "casemap",
    "collator",
    "datetime",
    "decimal",
    "list",
    "locale",
    "normalizer",
    "plurals",
    "properties",
    "segmenter",
    "timezone",
]
experimental = ["dep:icu_experimental"]
libc_alloc = ["dep:libc_alloc"]
list = [
    "dep:icu_list",
    "dep:potential_utf",
]
locale = ["dep:icu_locale"]
logging = [
    "icu_provider/logging",
    "diplomat-runtime/log",
    "std",
]
looping_panic_handler = []
normalizer = [
    "dep:icu_normalizer",
    "icu_normalizer?/utf8_iter",
    "icu_normalizer?/utf16_iter",
]
plurals = [
    "dep:icu_plurals",
    "dep:fixed_decimal",
]
properties = [
    "dep:icu_properties",
    "dep:icu_collections",
    "dep:unicode-bidi",
]
provider_fs = [
    "dep:icu_provider_fs",
    "buffer_provider",
    "std",
]
segmenter = ["dep:icu_segmenter"]
simple_logger = [
    "dep:simple_logger",
    "logging",
]
std = []
timezone = ["calendar"]
unstable = ["icu_calendar?/unstable"]

[lib]
name = "icu_capi"
path = "src/lib.rs"

[dependencies.diplomat]
version = "0.14.0"
default-features = false

[dependencies.diplomat-runtime]
version = "0.14.0"
default-features = false

[dependencies.fixed_decimal]
version = "0.7.0"
features = ["ryu"]
optional = true
default-features = false

[dependencies.icu_calendar]
version = "~2.1.1"
features = [
    "alloc",
    "ixdtf",
]
optional = true
default-features = false

[dependencies.icu_casemap]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_collator]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_collections]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_datetime]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_decimal]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_experimental]
version = "~0.4.0"
optional = true
default-features = false

[dependencies.icu_list]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_locale]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_locale_core]
version = "2.1.1"
features = ["alloc"]
default-features = false

[dependencies.icu_normalizer]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_plurals]
version = "~2.1.1"
optional = true
default-features = false

[dependencies.icu_properties]
version = "~2.1.1"
features = [
    "alloc",
    "unicode_bidi",
]
optional = true
default-features = false

[dependencies.icu_provider]
version = "2.1.1"
default-features = false

[dependencies.icu_provider_adapters]
version = "~2.1.1"
features = ["serde"]
default-features = false

[dependencies.icu_provider_blob]
version = "~2.1.1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.icu_segmenter]
version = "~2.1.1"
features = ["auto"]
optional = true
default-features = false

[dependencies.icu_time]
version = "~2.1.1"
features = [
    "alloc",
    "ixdtf",
]
optional = true
default-features = false

[dependencies.potential_utf]
version = "0.1.3"
features = ["writeable"]
optional = true
default-features = false

[dependencies.tinystr]
version = "0.8.0"
optional = true
default-features = false

[dependencies.unicode-bidi]
version = "0.3.11"
optional = true
default-features = false

[dependencies.writeable]
version = "0.6.0"
default-features = false

[dependencies.zerovec]
version = "0.11.3"
optional = true
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_os = "none")))'.dependencies.icu_provider_fs]
version = "~2.1.1"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc_alloc]
version = "1.0.6"
features = ["global"]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.simple_logger]
version = "5.0.0"
optional = true
