Skip to content

Commit d02e1fa

Browse files
committed
Replace icu_locale with icu_locale_core
1 parent 306d914 commit d02e1fa

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ web-time = "1.1.0"
4848
# ICU4X
4949
tinystr = "0.8.0"
5050
icu_calendar = { version = "2.1.0", default-features = false, features = ["unstable"] }
51-
icu_locale = "2.1.0"
51+
icu_locale_core = "2.1.0"
5252
zerovec = "0.11.0"
5353
databake = "0.2.0"
5454
zerotrie = "0.2.0"
@@ -80,7 +80,7 @@ exclude.workspace = true
8080

8181
core_maths = "0.1.1"
8282
icu_calendar = { workspace = true, features = ["compiled_data"] }
83-
icu_locale.workspace = true
83+
icu_locale_core.workspace = true
8484
ixdtf = { workspace = true, features = ["duration"] }
8585
num-traits.workspace = true
8686
tinystr.workspace = true

src/builtins/core/calendar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use icu_calendar::{
3434
types::DateFields,
3535
Gregorian,
3636
};
37-
use icu_locale::extensions::unicode::Value;
37+
use icu_locale_core::extensions::unicode::Value;
3838
use tinystr::TinyAsciiStr;
3939

4040
use super::ZonedDateTime;

temporal_capi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ num-traits.workspace = true
2424
temporal_rs = { workspace = true, default-features = false }
2525
timezone_provider = { workspace = true, default-features = false }
2626
icu_calendar.workspace = true
27-
icu_locale.workspace = true
27+
icu_locale_core.workspace = true
2828
writeable.workspace = true
2929
zoneinfo64 = { workspace = true, optional = true }
3030

temporal_capi/src/calendar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub mod ffi {
2929

3030
impl AnyCalendarKind {
3131
pub fn get_for_str(s: &DiplomatStr) -> Option<Self> {
32-
let value = icu_locale::extensions::unicode::Value::try_from_utf8(s).ok()?;
32+
let value = icu_locale_core::extensions::unicode::Value::try_from_utf8(s).ok()?;
3333
let algorithm = CalendarAlgorithm::try_from(&value).ok()?;
3434
match icu_calendar::AnyCalendarKind::try_from(algorithm) {
3535
// islamic-rgsa / simulated-mecca is supported by ICU4X but not Temporal

tools/depcheck/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ pub const BASIC_RUNTIME_DEPS: &[&str] = &[
161161
"icu_calendar",
162162
"icu_calendar_data",
163163
"icu_collections",
164-
"icu_locale",
165164
"icu_locale_core",
166-
"icu_locale_data",
167165
"icu_provider",
168166
"ixdtf",
169167
"litemap",

0 commit comments

Comments
 (0)