mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fix: add cfg(unix) to check_date, format Cargo.toml files
This commit is contained in:
@@ -20,7 +20,12 @@ path = "src/date.rs"
|
||||
|
||||
[features]
|
||||
default = ["i18n-datetime"]
|
||||
i18n-datetime = ["uucore/i18n-datetime", "dep:icu_calendar", "dep:icu_locale", "dep:jiff-icu"]
|
||||
i18n-datetime = [
|
||||
"uucore/i18n-datetime",
|
||||
"dep:icu_calendar",
|
||||
"dep:icu_locale",
|
||||
"dep:jiff-icu",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true }
|
||||
|
||||
@@ -154,7 +154,13 @@ i18n-all = ["i18n-collator", "i18n-decimal", "i18n-datetime"]
|
||||
i18n-common = ["icu_locale"]
|
||||
i18n-collator = ["i18n-common", "icu_collator"]
|
||||
i18n-decimal = ["i18n-common", "icu_decimal", "icu_provider"]
|
||||
i18n-datetime = ["i18n-common", "icu_calendar", "icu_datetime", "jiff-icu", "jiff"]
|
||||
i18n-datetime = [
|
||||
"i18n-common",
|
||||
"icu_calendar",
|
||||
"icu_datetime",
|
||||
"jiff-icu",
|
||||
"jiff",
|
||||
]
|
||||
mode = ["libc"]
|
||||
perms = ["entries", "libc", "walkdir"]
|
||||
buf-copy = []
|
||||
|
||||
@@ -1867,6 +1867,7 @@ fn test_date_thai_locale_solar_calendar() {
|
||||
assert!(rfc_output.starts_with(¤t_year.to_string()));
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn check_date(locale: &str, date: &str, fmt: &str, expected: &str) {
|
||||
let actual = new_ucmd!()
|
||||
.env("LC_ALL", locale)
|
||||
|
||||
Reference in New Issue
Block a user