Skip to content

Commit fdf3ea9

Browse files
committed
fix: add cfg(unix) to check_date, format Cargo.toml files
1 parent 0e162a3 commit fdf3ea9

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/uu/date/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ path = "src/date.rs"
2020

2121
[features]
2222
default = ["i18n-datetime"]
23-
i18n-datetime = ["uucore/i18n-datetime", "dep:icu_calendar", "dep:icu_locale", "dep:jiff-icu"]
23+
i18n-datetime = [
24+
"uucore/i18n-datetime",
25+
"dep:icu_calendar",
26+
"dep:icu_locale",
27+
"dep:jiff-icu",
28+
]
2429

2530
[dependencies]
2631
clap = { workspace = true }

src/uucore/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,13 @@ i18n-all = ["i18n-collator", "i18n-decimal", "i18n-datetime"]
154154
i18n-common = ["icu_locale"]
155155
i18n-collator = ["i18n-common", "icu_collator"]
156156
i18n-decimal = ["i18n-common", "icu_decimal", "icu_provider"]
157-
i18n-datetime = ["i18n-common", "icu_calendar", "icu_datetime", "jiff-icu", "jiff"]
157+
i18n-datetime = [
158+
"i18n-common",
159+
"icu_calendar",
160+
"icu_datetime",
161+
"jiff-icu",
162+
"jiff",
163+
]
158164
mode = ["libc"]
159165
perms = ["entries", "libc", "walkdir"]
160166
buf-copy = []

tests/by-util/test_date.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,7 @@ fn test_date_thai_locale_solar_calendar() {
18671867
assert!(rfc_output.starts_with(&current_year.to_string()));
18681868
}
18691869

1870+
#[cfg(unix)]
18701871
fn check_date(locale: &str, date: &str, fmt: &str, expected: &str) {
18711872
let actual = new_ucmd!()
18721873
.env("LC_ALL", locale)

0 commit comments

Comments
 (0)