fix: add cfg(unix) to check_date, format Cargo.toml files

This commit is contained in:
Christopher Dryden
2026-01-28 17:14:57 +00:00
parent 0e162a3ff6
commit fdf3ea9523
3 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -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 }
+7 -1
View File
@@ -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 = []
+1
View File
@@ -1867,6 +1867,7 @@ fn test_date_thai_locale_solar_calendar() {
assert!(rfc_output.starts_with(&current_year.to_string()));
}
#[cfg(unix)]
fn check_date(locale: &str, date: &str, fmt: &str, expected: &str) {
let actual = new_ucmd!()
.env("LC_ALL", locale)