| 1 |
# spell-checker:ignore datetime tzdb zoneinfo |
| 2 |
[package] |
| 3 |
name = "uu_date" |
| 4 |
description = "date ~ (uutils) display or set the current time" |
| 5 |
repository = "https://github.com/uutils/coreutils/tree/main/src/date" |
| 6 |
version.workspace = true |
| 7 |
license.workspace = true |
| 8 |
homepage.workspace = true |
| 9 |
keywords.workspace = true |
| 10 |
categories.workspace = true |
| 11 |
edition.workspace = true |
| 12 |
rust-version.workspace = true |
| 13 |
readme.workspace = true |
| 14 |
|
| 15 |
[lib] |
| 16 |
path = "src/date.rs" |
| 17 |
doctest = false |
| 18 |
|
| 19 |
[features] |
| 20 |
default = ["i18n-datetime"] |
| 21 |
i18n-datetime = [ |
| 22 |
"uucore/i18n-datetime", |
| 23 |
"dep:icu_calendar", |
| 24 |
"dep:icu_locale", |
| 25 |
"dep:jiff-icu", |
| 26 |
] |
| 27 |
|
| 28 |
[dependencies] |
| 29 |
clap = { workspace = true } |
| 30 |
fluent = { workspace = true } |
| 31 |
icu_calendar = { workspace = true, optional = true } |
| 32 |
icu_locale = { workspace = true, optional = true } |
| 33 |
jiff-icu = { workspace = true, optional = true } |
| 34 |
jiff = { workspace = true, features = [ |
| 35 |
"tzdb-bundle-platform", |
| 36 |
"tzdb-zoneinfo", |
| 37 |
"tzdb-concatenated", |
| 38 |
] } |
| 39 |
parse_datetime = { workspace = true } |
| 40 |
thiserror = { workspace = true } |
| 41 |
uucore = { workspace = true, features = ["parser", "i18n-datetime"] } |
| 42 |
|
| 43 |
[target.'cfg(unix)'.dependencies] |
| 44 |
libc = { workspace = true } |
| 45 |
rustix = { workspace = true, features = ["time"] } |
| 46 |
|
| 47 |
[target.'cfg(target_env = "ohos")'.dependencies] |
| 48 |
# OHOS has no /usr/share/zoneinfo or /etc/localtime: embed IANA tzdata so |
| 49 |
# ohos_system_zone() can resolve the TimeService timezone ID directly (pass-through, |
| 50 |
# no environment injection). |
| 51 |
jiff-tzdb = { workspace = true } |
| 52 |
|
| 53 |
[target.'cfg(windows)'.dependencies] |
| 54 |
windows-sys = { workspace = true, features = [ |
| 55 |
"Win32_Foundation", |
| 56 |
"Win32_System_SystemInformation", |
| 57 |
] } |
| 58 |
|
| 59 |
[[bin]] |
| 60 |
name = "date" |
| 61 |
path = "src/main.rs" |
| 62 |
|
| 63 |
[dev-dependencies] |
| 64 |
divan = { workspace = true } |
| 65 |
tempfile = { workspace = true } |
| 66 |
uucore = { workspace = true, features = ["benchmark"] } |
| 67 |
|
| 68 |
[lints] |
| 69 |
workspace = true |
| 70 |
|
| 71 |
[[bench]] |
| 72 |
name = "date_bench" |
| 73 |
harness = false |