[package]
edition = "2021"
rust-version = "1.86"
name = "icu_time"
version = "2.2.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 = "Processing of dates, times, and time zones with a focus on i18n and interop"
homepage = "https://icu4x.unicode.org"
readme = "README.md"
keywords = [
"unicode",
"formatting",
"date",
]
categories = [
"internationalization",
"localization",
"no-std",
"embedded",
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
[package.metadata.docs.rs]
all-features = true
[package.metadata.cargo-all-features]
max_combination_size = 3
[package.metadata.cargo-semver-checks.lints]
workspace = true
[features]
alloc = [
"zerotrie/alloc",
"serde?/alloc",
"zerovec/alloc",
]
compiled_data = [
"dep:icu_time_data",
"icu_calendar/compiled_data",
"icu_provider/baked",
]
datagen = [
"serde",
"dep:databake",
"zerovec/databake",
"zerotrie/databake",
"icu_provider/export",
"icu_locale_core/databake",
"alloc",
]
default = [
"compiled_data",
"ixdtf",
]
ixdtf = [
"dep:ixdtf",
"icu_calendar/ixdtf",
]
serde = [
"dep:serde",
"zerovec/serde",
"zerotrie/serde",
"icu_provider/serde",
"icu_locale_core/serde",
"alloc",
]
unstable = []
unstable_chrono_0_4 = [
"dep:chrono",
"dep:chrono-tz",
"icu_calendar/unstable_chrono_0_4",
]
unstable_jiff_0_2 = [
"dep:jiff",
"icu_calendar/unstable_jiff_0_2",
]
unstable_time_0_3 = [
"dep:time",
"icu_calendar/unstable_time_0_3",
]
[lib]
name = "icu_time"
path = "src/lib.rs"
[dependencies.calendrical_calculations]
version = "0.2.4"
default-features = false
[dependencies.chrono]
version = "0.4"
optional = true
default-features = false
[dependencies.chrono-tz]
version = "0.10"
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.icu_calendar]
version = "~2.2.0"
default-features = false
[dependencies.icu_locale_core]
version = "2.2.0"
features = ["zerovec"]
default-features = false
[dependencies.icu_provider]
version = "2.2.0"
default-features = false
[dependencies.icu_time_data]
version = "~2.2.0"
optional = true
default-features = false
[dependencies.ixdtf]
version = "0.6.5"
optional = true
default-features = false
[dependencies.jiff]
version = "0.2"
optional = true
default-features = false
[dependencies.serde]
version = "1.0.220"
features = ["derive"]
optional = true
default-features = false
[dependencies.time]
version = "0.3"
optional = true
default-features = false
[dependencies.zerotrie]
version = "0.2.4"
features = [
"yoke",
"zerofrom",
]
default-features = false
[dependencies.zerovec]
version = "0.11.6"
features = [
"derive",
"yoke",
]
default-features = false
[dev-dependencies.tinystr]
version = "0.8.3"
default-features = false
[dev-dependencies.writeable]
version = "0.6.1"
default-features = false
[lints.clippy]
alloc-instead-of-core = "warn"
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_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]