# 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 = "2024" rust-version = "1.88" name = "icu_datetime" version = "2.3.0" authors = ["The ICU4X Project Developers"] build = false include = [ "data/**/*", "src/**/*", "examples/**/*", "benches/**/*", "tests/**/*", "Cargo.toml", "LICENSE", "README.md", "build.rs", ] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Human-readable formatting of dates, times, and time zones in hundreds of locales" homepage = "https://icu4x.unicode.org" readme = "README.md" keywords = [ "unicode", "formatting", "date", "time", ] categories = [ "internationalization", "localization", "no-std", "embedded", ] license = "Unicode-3.0" repository = "https://github.com/unicode-org/icu4x" resolver = "2" [package.metadata.docs.rs] all-features = true [package.metadata.cargo-all-features] skip_optional_dependencies = true max_combination_size = 3 [package.metadata.cargo-semver-checks.lints] workspace = true [features] compiled_data = [ "dep:icu_datetime_data", "icu_calendar/compiled_data", "icu_decimal/compiled_data", "icu_plurals/compiled_data", "icu_time/compiled_data", "dep:icu_locale_fallback", "icu_locale_fallback?/compiled_data", "icu_provider/baked", ] datagen = [ "dep:databake", "dep:smallvec", "icu_calendar/datagen", "icu_pattern/databake", "icu_plurals/datagen", "icu_time/datagen", "icu_provider/export", "serde", ] default = [ "compiled_data", "ixdtf", ] ixdtf = [ "icu_time/ixdtf", "icu_calendar/ixdtf", ] logging = ["icu_calendar/logging"] serde = [ "dep:serde", "icu_calendar/serde", "icu_decimal/serde", "icu_pattern/serde", "icu_plurals/serde", "icu_provider/alloc", "icu_provider/serde", "icu_time/serde", "smallvec?/serde", "tinystr/serde", "potential_utf/serde", "zerovec/serde", "dep:zerotrie", ] unstable = ["icu_time/unstable"] unstable_chrono_0_4 = [ "dep:chrono", "icu_time/unstable_chrono_0_4", "icu_calendar/unstable_chrono_0_4", ] unstable_jiff_0_2 = [ "dep:jiff", "icu_time/unstable_jiff_0_2", "icu_calendar/unstable_jiff_0_2", ] unstable_time_0_3 = [ "dep:time", "icu_time/unstable_time_0_3", "icu_calendar/unstable_time_0_3", ] [lib] name = "icu_datetime" path = "src/lib.rs" bench = false [[test]] name = "datetime" path = "tests/datetime.rs" required-features = [ "unstable", "compiled_data", "serde", ] [[test]] name = "hijri_iran" path = "tests/hijri_iran.rs" [[test]] name = "pattern_serialization" path = "tests/pattern_serialization.rs" [[test]] name = "range" path = "tests/range.rs" required-features = [ "compiled_data", "unstable", ] [[test]] name = "resolved_components" path = "tests/resolved_components.rs" required-features = [ "unstable", "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 = ["unstable"] [[bench]] name = "datetime" path = "benches/datetime.rs" harness = false required-features = [ "compiled_data", "serde", "unstable", ] [[bench]] name = "pattern" path = "benches/pattern.rs" harness = false required-features = [ "serde", "unstable", ] [dependencies.chrono] version = "0.4" optional = true default-features = false [dependencies.databake] version = "0.2.0" features = ["derive"] optional = true default-features = false [dependencies.displaydoc] version = "0.2.3" default-features = false [dependencies.fixed_decimal] version = "0.7.2" default-features = false [dependencies.icu_calendar] version = "~2.3.0" default-features = false [dependencies.icu_datetime_data] version = "~2.3.0" optional = true default-features = false [dependencies.icu_decimal] version = "~2.3.0" default-features = false [dependencies.icu_locale_core] version = "2.3.0" default-features = false [dependencies.icu_locale_fallback] version = "~2.3.0" optional = true default-features = false [dependencies.icu_pattern] version = "0.5.0" features = [ "zerovec", "alloc", ] default-features = false [dependencies.icu_plurals] version = "~2.3.0" default-features = false [dependencies.icu_provider] version = "2.3.0" default-features = false [dependencies.icu_time] version = "~2.3.0" features = ["alloc"] default-features = false [dependencies.jiff] version = "0.2" optional = true default-features = false [dependencies.potential_utf] version = "0.1.3" features = [ "alloc", "zerovec", ] default-features = false [dependencies.serde] version = "1.0.220" features = [ "derive", "alloc", ] optional = true default-features = false [dependencies.smallvec] version = "1.10.0" optional = true default-features = false [dependencies.time] version = "0.3" optional = true default-features = false [dependencies.tinystr] version = "0.8.4" features = [ "alloc", "zerovec", ] default-features = false [dependencies.writeable] version = "0.6.4" default-features = false [dependencies.zerotrie] version = "0.2.5" features = ["alloc"] optional = true default-features = false [dependencies.zerovec] version = "0.11.7" features = [ "alloc", "yoke", ] default-features = false [dev-dependencies.bincode] version = "1.3.1" [dev-dependencies.calendrical_calculations] version = "0.2.4" default-features = false [dev-dependencies.chrono-tz] version = "0.10" default-features = false [dev-dependencies.jiff] version = "0.2" features = [ "std", "tzdb-bundle-always", ] default-features = false [dev-dependencies.serde] version = "1.0.220" features = ["derive"] default-features = false [dev-dependencies.serde_json] version = "1.0.45" [dev-dependencies.ureq] version = "3.0.0" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] version = "0.5.0" [lints.clippy] alloc_instead_of_core = "warn" bool_assert_comparison = "allow" branches_sharing_code = "warn" collection_is_never_read = "warn" crosspointer_transmute = "warn" dbg_macro = "warn" debug_assert_with_mut_call = "warn" doc_markdown = "warn" exhaustive_enums = "deny" exhaustive_structs = "deny" fn_to_numeric_cast_any = "warn" infinite_loop = "warn" large_stack_arrays = "warn" mismatching_type_param_order = "warn" missing_fields_in_debug = "warn" missing_transmute_annotations = "warn" negative_feature_names = "warn" or_fun_call = "warn" same_functions_in_if_condition = "warn" todo = "warn" transmute_bytes_to_str = "warn" transmute_int_to_bool = "warn" transmute_int_to_non_zero = "warn" transmute_ptr_to_ptr = "warn" transmute_ptr_to_ref = "warn" transmute_undefined_repr = "warn" transmutes_expressible_as_ptr_casts = "warn" trivially_copy_pass_by_ref = "deny" unnecessary_wraps = "warn" useless_transmute = "warn" wildcard_dependencies = "warn" [lints.rust] missing_debug_implementations = "deny" trivial_numeric_casts = "deny" unused_lifetimes = "warn" unused_macro_rules = "warn" unused_qualifications = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(icu4c_enable_renaming)", "cfg(needs_alloc_error_handler)", "cfg(icu4x_nightly_tests)", "cfg(icu4x_run_size_tests)", "cfg(icu4x_unstable_fast_trie_only)", ]