Skip to content

Commit 1acd2c1

Browse files
authored
Replace icu_locale with icu_locale_core (#694)
See #693
1 parent 71eecd4 commit 1acd2c1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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
@@ -46,7 +46,7 @@ web-time = "1.1.0"
4646
# ICU4X
4747
tinystr = "0.8.0"
4848
icu_calendar = { version = "2.1.0", default-features = false, features = ["unstable"] }
49-
icu_locale = "2.1.0"
49+
icu_locale_core = "2.1.0"
5050
zerovec = "0.11.0"
5151
databake = "0.2.0"
5252
zerotrie = "0.2.0"
@@ -78,7 +78,7 @@ exclude.workspace = true
7878

7979
core_maths = "0.1.1"
8080
icu_calendar = { workspace = true, features = ["compiled_data"] }
81-
icu_locale.workspace = true
81+
icu_locale_core.workspace = true
8282
ixdtf = { workspace = true, features = ["duration"] }
8383
num-traits.workspace = true
8484
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

0 commit comments

Comments
 (0)