# 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.71.1" name = "icu_datetime" version = "2.0.0-beta1" authors = ["The ICU4X Project Developers"] build = false include = [ "data/**/*", "src/**/*", "examples/**/*", "benches/**/*", "tests/**/*", "Cargo.toml", "LICENSE", "README.md", ] autobins = false autoexamples = false autotests = false autobenches = false description = "API for formatting date and time to user readable textual representation" homepage = "https://icu4x.unicode.org" readme = "README.md" categories = ["internationalization"] license = "Unicode-3.0" repository = "https://github.com/unicode-org/icu4x" [package.metadata.cargo-all-features] denylist = ["bench"] skip_optional_dependencies = true [package.metadata.docs.rs] all-features = true [lib] name = "icu_datetime" path = "src/lib.rs" bench = false [[example]] name = "work_log" path = "examples/work_log.rs" required-features = ["compiled_data"] [[test]] name = "datetime" path = "tests/datetime.rs" required-features = [ "experimental", "compiled_data", "serde", ] [[test]] name = "mock" path = "tests/mock.rs" [[test]] name = "pattern_serialization" path = "tests/pattern_serialization.rs" [[test]] name = "resolved_components" path = "tests/resolved_components.rs" required-features = [ "experimental", "compiled_data", ] [[test]] name = "simple_test" path = "tests/simple_test.rs" required-features = ["compiled_data"] [[test]] name = "skeleton_serialization" path = "tests/skeleton_serialization.rs" required-features = ["experimental"] [[bench]] name = "datetime" path = "benches/datetime.rs" harness = false required-features = [ "compiled_data", "serde", "experimental", ] [[bench]] name = "pattern" path = "benches/pattern.rs" harness = false required-features = [ "bench", "serde", "experimental", ] [dependencies.databake] version = "0.2.0" features = ["derive"] optional = true default-features = false [dependencies.displaydoc] version = "0.2.3" default-features = false [dependencies.either] version = "1.9.0" default-features = false [dependencies.fixed_decimal] version = "0.6.0" default-features = false [dependencies.icu_calendar] version = "~2.0.0-beta1" default-features = false [dependencies.icu_datetime_data] version = "~2.0.0-beta1" optional = true default-features = false [dependencies.icu_decimal] version = "~2.0.0-beta1" default-features = false [dependencies.icu_locale_core] version = "2.0.0-beta1" default-features = false [dependencies.icu_pattern] version = "0.3.0" features = [ "zerovec", "alloc", ] default-features = false [dependencies.icu_plurals] version = "~2.0.0-beta1" default-features = false [dependencies.icu_provider] version = "2.0.0-beta1" features = ["macros"] default-features = false [dependencies.icu_timezone] version = "~2.0.0-beta1" default-features = false [dependencies.litemap] version = "0.7.3" optional = true default-features = false [dependencies.potential_utf] version = "0.1.0" features = ["zerovec"] default-features = false [dependencies.serde] version = "1.0.110" features = [ "derive", "alloc", ] optional = true default-features = false [dependencies.smallvec] version = "1.10.0" default-features = false [dependencies.tinystr] version = "0.8.0" features = [ "alloc", "zerovec", ] default-features = false [dependencies.writeable] version = "0.6.0" default-features = false [dependencies.zerovec] version = "0.11.0" features = ["yoke"] default-features = false [dev-dependencies.bincode] version = "1.3.1" [dev-dependencies.serde] version = "1.0.110" features = ["derive"] default-features = false [dev-dependencies.serde_json] version = "1.0.45" [features] bench = [ "serde", "datagen", ] compiled_data = [ "dep:icu_datetime_data", "icu_calendar/compiled_data", "icu_decimal/compiled_data", "icu_plurals/compiled_data", "icu_timezone/compiled_data", ] datagen = [ "dep:databake", "dep:litemap", "icu_calendar/datagen", "icu_pattern/databake", "icu_plurals/datagen", "icu_timezone/datagen", "serde", "std", ] default = ["compiled_data"] experimental = ["dep:litemap"] logging = ["icu_calendar/logging"] serde = [ "dep:serde", "icu_calendar/serde", "icu_decimal/serde", "icu_pattern/serde", "icu_plurals/serde", "icu_provider/serde", "icu_timezone/serde", "litemap?/serde", "smallvec/serde", "tinystr/serde", "potential_utf/serde", "zerovec/serde", ] std = [ "icu_calendar/std", "icu_decimal/std", "icu_locale_core/std", "icu_plurals/std", "icu_provider/std", "icu_timezone/std", ] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] version = "0.5.0" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(icu4x_run_size_tests)"]