commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
daab6fafcb175c5c08996a10ff911f23c9ce20f8 | Robert Bastian | 2025-12-16T16:25:58 | Remove `Hijri<AstronomicalSimulation>` logic (#7301)
This reduces the code size of `date_try_from_fields.wasm` from 47kB to
19kB.
We still include 250 years of hardcoded data, and fall back to the
tabular algorithm outside that range.
This calendar specifically documents that we can change the range of the
astronomi... | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index 44e1985d8c..032e7b73b7 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -13,9 +13,6 @@ use crate::types::DateFields;
use crate::types::Month;
use crate::{types, Calendar, Date}... | 1 | 25 | 103 |
c82aec21b0738a3294c8b065402fd8793ff63c97 | Manish Goregaokar | 2025-12-15T22:11:32 | Correctly produce ethioaa from calendar_algorithm (#7321)
intl402/Temporal/PlainDate/prototype/withCalendar/calendar-time-string
intl402/Temporal/PlainDateTime/prototype/withCalendar/calendar-time-string
intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-time-string | diff --git a/components/calendar/src/cal/ethiopian.rs b/components/calendar/src/cal/ethiopian.rs
index 9ba68b223f..a387aed82b 100644
--- a/components/calendar/src/cal/ethiopian.rs
+++ b/components/calendar/src/cal/ethiopian.rs
@@ -250,7 +250,10 @@ impl Calendar for Ethiopian {
}
fn calendar_algorithm(&self)... | 1 | 4 | 1 |
c46d47f1a81b111892932fd422c10c59a58ae189 | Robert Bastian | 2025-12-11T09:03:40 | Remove serde dep from `icu_codepointtrie_builder` (#7298) | diff --git a/components/collections/codepointtrie_builder/Cargo.toml b/components/collections/codepointtrie_builder/Cargo.toml
index d44e94ceba..61aea9b133 100644
--- a/components/collections/codepointtrie_builder/Cargo.toml
+++ b/components/collections/codepointtrie_builder/Cargo.toml
@@ -39,10 +39,10 @@ wasm = ["dep:... | 1 | 2 | 2 |
bed58ee2c0d444a5fa3da364f7467465a250b9ca | Shane F. Carr | 2025-12-11T02:08:09 | Dense ZeroTrie: Add issues for the TODO items (#7304)
Resolves #6920 by making smaller follow-up issues. | diff --git a/utils/zerotrie/src/builder/dense.rs b/utils/zerotrie/src/builder/dense.rs
index cf07339f31..fb5128b957 100644
--- a/utils/zerotrie/src/builder/dense.rs
+++ b/utils/zerotrie/src/builder/dense.rs
@@ -34,7 +34,7 @@ impl<'a> DenseSparse2dAsciiWithFixedDelimiterBuilder<'a> {
prefix: &'a str,
v... | 1 | 4 | 4 |
b2ec5004a62b353ca588241b3be457d39ee0a709 | rusat | 2025-12-09T23:14:48 | Add example for measuring Date::try_from_fields code size (#7297)
This PR adds a standalone example using release-opt-size and the
benchmark macros so we can measure code size separately from the main
library changes.
Only the example and its dependencies are included here. | diff --git a/components/icu/examples/date_try_from_fields.rs b/components/icu/examples/date_try_from_fields.rs
new file mode 100644
index 0000000000..b0b8b821c1
--- /dev/null
+++ b/components/icu/examples/date_try_from_fields.rs
@@ -0,0 +1,34 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// ... | 1 | 34 | 0 |
3cca77ad5af3f283e55fa7d61f8b465ed79d1ac9 | Robert Bastian | 2025-12-08T23:06:23 | Relax some bounds (#7286)
The derive puts a bound on `C`, which we don't need. | diff --git a/components/time/src/types.rs b/components/time/src/types.rs
index 9fcaef9654..e3851e6a43 100644
--- a/components/time/src/types.rs
+++ b/components/time/src/types.rs
@@ -198,7 +198,7 @@ impl Time {
/// Hence, while this type implements [`PartialEq`]/[`Eq`] (equal [`DateTime`]s will *display*
/// equally)... | 1 | 69 | 2 |
ed4f5779cb56cc16a5126fc3fd44cfacd71de87b | Robert Bastian | 2025-12-05T18:30:29 | Add docs for `DateTime`/`ZonedDateTime` semantics (#7275)
Fixes #7260 | diff --git a/components/time/src/types.rs b/components/time/src/types.rs
index f8a5867c1f..9fcaef9654 100644
--- a/components/time/src/types.rs
+++ b/components/time/src/types.rs
@@ -118,7 +118,7 @@ dt_unit!(
/// Must be within inclusive bounds `[0, 999_999_999]`."
);
-/// A representation of a time in hours, m... | 1 | 33 | 1 |
4a6d1f21e91f86121084fcd58b96eeac22529e2d | Robert Bastian | 2025-12-04T19:04:42 | Add conversions for properties/locale scripts (#7270)
#4705 | diff --git a/components/properties/src/bidi.rs b/components/properties/src/bidi.rs
index e421948310..9cf48056b4 100644
--- a/components/properties/src/bidi.rs
+++ b/components/properties/src/bidi.rs
@@ -71,8 +71,6 @@ pub enum BidiPairedBracketType {
#[cfg(feature = "unicode_bidi")]
use crate::props::BidiClass;
-///... | 2 | 20 | 2 |
2fdd6261e8a23b7e67417602641c82d393ba8831 | Robert Bastian | 2025-12-04T15:27:57 | Add conversions for `unicode_bidi::BidiClass` (#7272)
This is already done internally in our `BidiDataSource` impl. | diff --git a/components/properties/src/bidi.rs b/components/properties/src/bidi.rs
index 38ed67de73..e421948310 100644
--- a/components/properties/src/bidi.rs
+++ b/components/properties/src/bidi.rs
@@ -68,6 +68,9 @@ pub enum BidiPairedBracketType {
None,
}
+#[cfg(feature = "unicode_bidi")]
+use crate::props::B... | 1 | 43 | 5 |
bfba6a28815fa7d97b905b1dc28aca65a062b48e | Robert Bastian | 2025-12-04T14:37:07 | Fix CI (#7273)
Fixes #7263 | diff --git a/components/segmenter/examples/experimental_segmenter.rs b/components/segmenter/examples/experimental_segmenter.rs
index bd9e6244a6..4706a07902 100644
--- a/components/segmenter/examples/experimental_segmenter.rs
+++ b/components/segmenter/examples/experimental_segmenter.rs
@@ -4,7 +4,6 @@
#![no_main] //... | 1 | 3 | 4 |
c44a1482b719987660d9ddb95dbd951225e19db6 | Robert Bastian | 2025-12-04T09:20:16 | Tweak locale subtags docs (#7267) | diff --git a/components/locale_core/src/subtags/language.rs b/components/locale_core/src/subtags/language.rs
index fbdbc8aa9c..0c25f70304 100644
--- a/components/locale_core/src/subtags/language.rs
+++ b/components/locale_core/src/subtags/language.rs
@@ -6,7 +6,8 @@ impl_tinystr_subtag!(
/// A language subtag (exa... | 4 | 19 | 12 |
2b21ffd6e7875185d4937b2cffc4aee2f4be79c8 | Manish Goregaokar | 2025-11-25T02:46:27 | Use <= not < when checking if a day is out of range after addition (#7257)
The spec is wrong here:
https://github.com/tc39/proposal-intl-era-monthcode/pull/98 | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index 2caee6b4b4..2ee4f7d6ff 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -625,9 +625,9 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
... | 2 | 12 | 2 |
3c70501c51c1a5eb3e544670889f871aa7c536f2 | Shane F. Carr | 2025-11-19T02:44:45 | Assorted improvements to icu_datetime docs (#7244) | diff --git a/components/datetime/src/neo.rs b/components/datetime/src/neo.rs
index aae3466d2a..c05e8bfe04 100644
--- a/components/datetime/src/neo.rs
+++ b/components/datetime/src/neo.rs
@@ -789,8 +789,7 @@ impl<C: CldrCalendar, FSet: DateTimeMarkers> FixedCalendarDateTimeFormatter<C, F
///
/// For example, t... | 4 | 34 | 6 |
ff0461f45edafa06fc6536ded84d74db297aefd3 | Shane F. Carr | 2025-11-16T05:39:22 | Add icu_benchmark_macros boilerplate to experimental_segmenter (#7241) | diff --git a/Cargo.lock b/Cargo.lock
index 496a08a7d0..98b1917e81 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1787,6 +1787,7 @@ dependencies = [
"criterion",
"databake",
"icu",
+ "icu_benchmark_macros",
"icu_collections",
"icu_locale",
"icu_locale_core",
diff --git a/components/segmenter/Cargo.toml b/compo... | 3 | 10 | 3 |
18a0068ee82607b72a883fcc409688352fa597f5 | may | 2025-11-15T20:27:37 | Add `--attribute-filter` cli flag to icu4x-datagen (#7236)
Implements a regex search.
resolves #6851
supersedes/closes #7166
---------
Co-authored-by: Robert Bastian <robertbastian@unicode.org>
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com> | diff --git a/Cargo.lock b/Cargo.lock
index bc8d316a60..496a08a7d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1165,6 +1165,7 @@ name = "icu4x-datagen"
version = "2.1.1"
dependencies = [
"clap",
+ "displaydoc",
"eyre",
"icu",
"icu_provider",
@@ -1173,6 +1174,7 @@ dependencies = [
"icu_provider_registry",
... | 4 | 120 | 0 |
5026f2545d4bbaff04e62e07a8dd9195a75738a3 | Shane F. Carr | 2025-11-12T16:12:38 | Print warning when multiple filters are applied to same marker (#7240) | diff --git a/provider/export/src/lib.rs b/provider/export/src/lib.rs
index 5d665914d6..9f543927d1 100644
--- a/provider/export/src/lib.rs
+++ b/provider/export/src/lib.rs
@@ -186,7 +186,7 @@ impl ExportDriver {
.with_additional_collations([])
}
- /// Adds a filter on a [`DataMarkerAttributes`].
+ ... | 1 | 6 | 2 |
e721b813e4149ec310f45caaac380ce20783b643 | Bryce Berger | 2025-11-07T23:59:44 | Allow trait bounds in `where` clauses in yoke_derive (#7230)
fixes #7229 | diff --git a/utils/yoke/derive/Cargo.toml b/utils/yoke/derive/Cargo.toml
index dc742e935a..29f55d722a 100644
--- a/utils/yoke/derive/Cargo.toml
+++ b/utils/yoke/derive/Cargo.toml
@@ -29,4 +29,4 @@ synstructure = { workspace = true }
[dev-dependencies]
yoke = { path = "..", features = ["derive"] }
-zerovec = { path ... | 3 | 37 | 4 |
f3cff8c6ad4a35107bf8080f02d42cc5e93e94d9 | Shane F. Carr | 2025-11-06T21:46:10 | Add CLI to run CNN and AdaBoost models (#7217) | diff --git a/components/segmenter/examples/experimental_segmenter.rs b/components/segmenter/examples/experimental_segmenter.rs
new file mode 100644
index 0000000000..035f8279e1
--- /dev/null
+++ b/components/segmenter/examples/experimental_segmenter.rs
@@ -0,0 +1,109 @@
+// This file is part of ICU4X. For terms of use,... | 4 | 185 | 83 |
b8adfeedd47ae1a27cf0807833cc917ef6d142cc | Robert Bastian | 2025-11-06T17:40:52 | Correct `AnyCalendar` docs (#7225) | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 2b592b1173..42ad4fd2a4 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -28,7 +28,7 @@ define_preferences!(
}
);
-/// This is a calendar that encompasses all ... | 1 | 1 | 1 |
8503be47e73a2fac4348b482352a953fb6b5b4d8 | Robert Bastian | 2025-11-06T16:10:41 | `AnyCalendar` cleanups (#7223) | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 3032034600..2b592b1173 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -86,14 +86,14 @@ pub enum AnyCalendar {
Gregorian(Gregorian),
/// A [`Hebrew`] calen... | 1 | 184 | 111 |
76675e30635e277b02e61e0d1fe35cd89789d7ee | Robert Bastian | 2025-11-05T20:05:53 | Add range invariant to `ArithmeticDate` (#7219)
This adds a `VALID_RD_RANGE` invariant that is derived from the
`VALID_YEAR_RANGE`, which itself is changed to +-10e6 (the range which
we exhaustively test).
The `ArithmeticDate::new_unchecked` and `Calendar::from_rata_die`
methods gains a precondition; the latter usual... | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index 17cd85e3f5..0dd3d69307 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -10,7 +10,6 @@ use crate::options::{DateAddOptions, Da... | 14 | 171 | 224 |
1f64f76b5bea25c0b06a04eb3f94342c24ec943f | Manish Goregaokar | 2025-11-04T01:04:19 | Add fuzzing for calendar arithmetic code (#7206)
This also updates the constructor fuzzer with the latest code. I guess
it doesn't get CI'd.
I split out the "construct a date" code into common.rs so it can be
reused.
These fuzzers appear to be running smoothly. I had to cap `day` values
for the `add` fuzzer within T... | diff --git a/components/calendar/fuzz/Cargo.toml b/components/calendar/fuzz/Cargo.toml
index 6f9ee5886c..ec52738831 100644
--- a/components/calendar/fuzz/Cargo.toml
+++ b/components/calendar/fuzz/Cargo.toml
@@ -14,7 +14,7 @@ cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.4"
arbitrary = { version = "1.4", featur... | 5 | 281 | 101 |
ce3610d8b8dca7f88011e797c47e38322711c4a6 | Robert Bastian | 2025-11-03T18:37:03 | Remove old datetime data structs (#7205)
`PluralPattern`, `PluralPatterns`, `DateSkeletonPatterns`,
`SkeletonData` are basically dead. Updated datagen to use
`BTreeMap<Skeleton, PluralElements<Pattern>>` | diff --git a/Cargo.lock b/Cargo.lock
index dda1d67b3d..4ff9a41275 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1373,7 +1373,6 @@ dependencies = [
"criterion",
"databake",
"displaydoc",
- "either",
"fixed_decimal",
"icu",
"icu_calendar",
@@ -1387,7 +1386,6 @@ dependencies = [
"icu_provider_adapters",
"ic... | 11 | 126 | 485 |
1fbff08420e7ff1f105de5e3760bf786924e54d9 | Robert Bastian | 2025-10-31T00:01:00 | Some datagen cleanup (#7202) | diff --git a/provider/source/src/calendar/eras.rs b/provider/source/src/calendar/eras.rs
index 8f8d342ca2..d471d0a535 100644
--- a/provider/source/src/calendar/eras.rs
+++ b/provider/source/src/calendar/eras.rs
@@ -28,20 +28,7 @@ impl SourceDataProvider {
// The Japanese era codes depend on the Latin r... | 6 | 38 | 112 |
b91b3b5688d8842275a7107f86ead0c944236b10 | Manish Goregaokar | 2025-10-28T19:36:19 | Remove trailing whitespace (#7193) | diff --git a/components/calendar/src/cal/hebrew.rs b/components/calendar/src/cal/hebrew.rs
index e1e43953ca..bbbec16bc1 100644
--- a/components/calendar/src/cal/hebrew.rs
+++ b/components/calendar/src/cal/hebrew.rs
@@ -42,7 +42,7 @@ use calendrical_calculations::rata_die::RataDie;
/// ʾAv (`M11`, 30 days), ʾElūl (`M12... | 1 | 1 | 1 |
a45a095c80ef0f3e213f79cb23a699474cbfc67d | Manish Goregaokar | 2025-10-28T16:19:05 | Update workspace dep | diff --git a/Cargo.toml b/Cargo.toml
index df855c1702..8895b4a8b1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -132,9 +132,9 @@ include = [
# ICU4X core
# These use non-tilde deps, see https://github.com/unicode-org/icu4x/issues/4343
-icu_locale_core = { version = "2.0.0", path = "components/locale_core", default-fe... | 1 | 3 | 3 |
55c44ca800f1332126cfbf2d5b529ec4e5451e2c | Manish Goregaokar | 2025-10-28T16:08:58 | icu_codepointtrie_builder 0.5.1 | diff --git a/Cargo.lock b/Cargo.lock
index 15ceff8eab..0143377b06 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1282,7 +1282,7 @@ version = "2.1.0"
[[package]]
name = "icu_codepointtrie_builder"
-version = "0.5.0"
+version = "0.5.1"
dependencies = [
"icu",
"icu_collections",
diff --git a/components/collections/... | 2 | 2 | 2 |
102c59112d7a29fd03157fceecd527043940a61a | Henri Sivonen | 2025-10-28T12:45:53 | Omit the trailing NO_CE when iterating over the case level buffer (#7186)
ICU4C does this, but and the inclusion of the NO_CE in iteration was an
oversight in porting.
Fixes #7145 | diff --git a/components/collator/src/comparison.rs b/components/collator/src/comparison.rs
index 98e64a2579..d4509dd33d 100644
--- a/components/collator/src/comparison.rs
+++ b/components/collator/src/comparison.rs
@@ -2306,15 +2306,20 @@ impl CollatorBorrowed<'_> {
// Write pairs of nibbles as bytes, ex... | 1 | 35 | 8 |
5c71669357d6275884757da6f7a4736921efee0f | Manish Goregaokar | 2025-10-27T14:46:52 | Document the future changes possible for ground-truth or simulation-based Rules impls (#7172)
Fixes #6459
---------
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com> | diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs
index dc3ae47eb0..879c4a6f2c 100644
--- a/components/calendar/src/cal/east_asian_traditional.rs
+++ b/components/calendar/src/cal/east_asian_traditional.rs
@@ -151,6 +151,11 @@ pub trait Rules: Clo... | 2 | 18 | 2 |
bf12a54eb33a7c064e93213a055faa061fe4fb77 | Robert Bastian | 2025-10-23T22:24:44 | Followup #7143 (#7160)
Deprecated code is not detected in doc tests 😞 | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 7da4d7c99c..cbf4ead772 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -250,7 +250,7 @@ pub enum AnyCalendarDifferenceError {
/// use icu::calendar::cal::AnyCal... | 2 | 8 | 8 |
d32468097dbf921e2fb4de53a3629f2a78ffdd26 | Robert Bastian | 2025-10-23T22:24:31 | Improve calendar documentation (#7151)
This is my attempt at #7123
https://github.com/unicode-org/icu4x/issues/6459, fixes
https://github.com/unicode-org/icu4x/issues/7026
* List the names of months and their lengths for every calendar
* Explain leap year rules for each calendar
* Document who created a calendar ins... | diff --git a/components/calendar/src/cal/buddhist.rs b/components/calendar/src/cal/buddhist.rs
index 443bddd0d4..f60f03e42f 100644
--- a/components/calendar/src/cal/buddhist.rs
+++ b/components/calendar/src/cal/buddhist.rs
@@ -12,25 +12,20 @@ use crate::{
use tinystr::tinystr;
#[derive(Copy, Clone, Debug, Default)]... | 13 | 216 | 131 |
291f881cc94b29433c43dc2318d82f85a243474a | Shane F. Carr | 2025-10-23T21:37:25 | Add docs and examples for segmentation content locale (#7136)
Fixes #6660 | diff --git a/components/segmenter/src/sentence.rs b/components/segmenter/src/sentence.rs
index a332e1a50c..c1b4dbabc4 100644
--- a/components/segmenter/src/sentence.rs
+++ b/components/segmenter/src/sentence.rs
@@ -17,6 +17,9 @@ use utf8_iter::Utf8CharIndices;
#[derive(Copy, Clone, PartialEq, Eq, Debug, Default)]
pub... | 2 | 83 | 20 |
677f392a7ac7b2312e0127d720f7acef70d31dd5 | Manish Goregaokar | 2025-10-23T10:14:05 | ASCII bytes -> UTF8 code units (#7139)
Fixes #7104
I don't think we need to spend time saying that these must be valid
ascii too. There's a lot of further validity on these anyway.
---------
Co-authored-by: Shane F. Carr <shane@unicode.org> | diff --git a/components/calendar/src/types.rs b/components/calendar/src/types.rs
index f66879f2f7..a24a9f104f 100644
--- a/components/calendar/src/types.rs
+++ b/components/calendar/src/types.rs
@@ -21,13 +21,15 @@ use crate::error::MonthCodeParseError;
#[derive(Copy, Clone, PartialEq, Default)]
#[non_exhaustive]
pu... | 1 | 6 | 4 |
b70d9d197f3f78c6e78dbef943472422f046834c | Robert Bastian | 2025-10-23T00:11:13 | Align and clean up Hijri and Chinese code (#7146) | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index e41eaae1c0..2c587b0cc8 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -543,12 +543,12 @@ impl<R: Rules> DateFieldsResolver for LunarChinese<R> {
type YearInfo = Lu... | 2 | 88 | 191 |
67c3f175be5be58f9099f2e0b1dd60224f57cc1c | Robert Bastian | 2025-10-22T19:41:28 | More month code cleanup (#7144)
* use more `ValidMonthCode` and less `str`/`TinyAsciiStr`/`MonthCode`
* `ValidMonthCode::from_bytes` should be `ValidMonthCode::try_from_utf8`
* some solar calendars don't reject leap months in
`reference_year_from_month_day`
* inlining and simplifying some Chinese code | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 3215e06676..e41eaae1c0 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -305,21 +305,20 @@ impl Rules for China {
/// ```rust
/// use icu::calendar::cal::LunarChinese;
... | 11 | 170 | 270 |
37107890cc19a995e8e824b5b27d854f656d37ff | Robert Bastian | 2025-10-22T18:49:23 | Deprecate convenience constructors of lunisolar calendars (#7143)
The fact that they use ordinal months is a footgun. They should be
replaced by constructors taking `month_code: &str` in the future, but
that's not ready yet, so `try_new_from_codes` can be used in the
meantime.
Related #7111 | diff --git a/components/calendar/benches/date.rs b/components/calendar/benches/date.rs
index d4c1d947b4..bb31790e1d 100644
--- a/components/calendar/benches/date.rs
+++ b/components/calendar/benches/date.rs
@@ -152,7 +152,10 @@ fn date_benches(c: &mut Criterion) {
"calendar/chinese_cached",
&fxs,
... | 5 | 120 | 116 |
6501827ed551cd66fa3f5fb9c4144c583fcf1a78 | Robert Bastian | 2025-10-22T18:48:44 | More `icu_calendar` cleanups (#7141)
#7010 | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index 033fa1d2d1..3d8bbce853 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -188,9 +188,9 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
... | 6 | 70 | 84 |
eee596432397461a55d4c19844b67d927d45bfaa | Robert Bastian | 2025-10-22T15:59:11 | Remove `prev_keviyah` (#7142)
This is dead code, probably since the new arithmetic code. | diff --git a/components/calendar/src/cal/hebrew.rs b/components/calendar/src/cal/hebrew.rs
index c281c3020b..bac58c1203 100644
--- a/components/calendar/src/cal/hebrew.rs
+++ b/components/calendar/src/cal/hebrew.rs
@@ -54,7 +54,6 @@ impl Hebrew {
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
pub(crate... | 1 | 18 | 25 |
1519b938de2d607a200408f0191f351f91456383 | Robert Bastian | 2025-10-22T09:50:02 | `MonthCode` cleanups (#7138) | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index 8fae7a92e3..bbed86bd56 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -189,7 +189,7 @@ impl<Y: GregorianYears> Calendar for ... | 13 | 164 | 185 |
3290248786cdf16329313ec38254876a390e843d | Zibi Braniecki | 2025-10-22T03:40:51 | [locale_core] Add `extend` to Unicode Extensions (#7112)
This change aligns with how `Preferences::extend` works and will be used
in regional preferences merges in `host_info`. | diff --git a/components/locale_core/src/extensions/unicode/attributes.rs b/components/locale_core/src/extensions/unicode/attributes.rs
index 357ae8a266..fe0b1ef14c 100644
--- a/components/locale_core/src/extensions/unicode/attributes.rs
+++ b/components/locale_core/src/extensions/unicode/attributes.rs
@@ -148,6 +148,29... | 4 | 65 | 1 |
bfc038a31d528316b37b0768a4c972e71f9dfb2d | Robert Bastian | 2025-10-21T15:13:20 | Optimize `Date::to_calendar` (#7089)
Currently non-Gregorian calendars implement `to_calendar` as `Date<A> ->
RataDie -> Date<Iso> -> RataDie -> Date<B>`. This PR cuts out the ISO
conversions to make it `Date<A> -> RataDie -> Date<B>`.
Gregorian calendars currently use `Date<A> -> Date<Iso> -> Date<B>`,
where both of... | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 99d3e3778b..34a3fc2e5c 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -293,10 +293,35 @@ impl Calendar for AnyCalendar {
Ok(match_cal!(match self: (c) => c... | 13 | 99 | 105 |
c71c74cff9fba0b2b8d2eaa32024fa41597e94fa | Shane F. Carr | 2025-10-20T23:37:11 | Add additional docs to DateFields, including byte strings (#7132)
#7104 | diff --git a/components/calendar/src/types.rs b/components/calendar/src/types.rs
index c992b6d097..23baab1d3d 100644
--- a/components/calendar/src/types.rs
+++ b/components/calendar/src/types.rs
@@ -25,25 +25,150 @@ pub struct DateFields<'a> {
/// The era code as defined by CLDR, represented as ASCII bytes.
/... | 1 | 125 | 0 |
b8637783614c83fa695e5148a08ef5b7a3b6a5af | Manish Goregaokar | 2025-10-20T22:50:46 | Move DateFields::month_code over to being a byte slice (#7116)
Depends on #7115, depends on #7105
Attempt at fixing #7104.
The user experience of the byte slice is a little bit worse if you want
to use MonthCode::new_normal/new_leap since you have to persist those
for a while.
Most people will not be creating them ... | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 110b632a8b..0acea38b1c 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -1779,7 +1779,7 @@ mod test {
fn test_from_fields_constrain() {
let fields = DateFie... | 10 | 89 | 66 |
47ebd5e7b8abd982c0705210291673c3f09881ca | Shane F. Carr | 2025-10-20T22:03:01 | Streamline more error cases around month code parsing (#7105)
#7010
This adds ValidMonthCode as an internal type.
Suggested in #7100
---------
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com> | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index edd7438cf0..2589349394 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -81,7 +81,7 @@ impl<Y: GregorianYears> DateFieldsResol... | 12 | 212 | 182 |
5f979aa70fb69415a22a918c95b3201744306e65 | Robert Bastian | 2025-10-20T18:04:01 | Consolidate constructor code in `ArithmeticDate` (#7130) | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 9580770837..99d3e3778b 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -275,6 +275,16 @@ impl Calendar for AnyCalendar {
type Year = YearInfo;
type Differe... | 13 | 285 | 223 |
76682880810d9de6612ce6a18246333920bc74a2 | Robert Bastian | 2025-10-20T16:50:01 | Improve `AnyCalendar` docs (#7131)
Fixes #7097 | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index d1816f0352..9580770837 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -41,7 +41,7 @@ define_preferences!(
///
/// There are many ways of constructing an AnyCalend... | 1 | 16 | 16 |
30866f32c725f74c2b1cbf7d4ddd60fef973e086 | Robert Bastian | 2025-10-20T14:48:30 | Remove `CalendarArithmetic` trait (#7088)
Most methods on this trait are only called by the calendar's `Calendar`
implementation, or are not called at all. Only two methods are used by
the from-fields code, which I moved to the `DateFieldsResolver` trait.
Not indirecting the logic through 3 intermediate functions all... | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index 0449f1ded5..74822dbfe4 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -3,9 +3,7 @@
// (online at: https://github.com/unicod... | 11 | 219 | 436 |
b98668d0856a0f5bb8437bfaaa798c5d88d8dfd0 | Manish Goregaokar | 2025-10-20T06:19:50 | Fix unlinked doc in nightly build (#7126)
Seems like nightly checks doclinks on hidden items | diff --git a/components/calendar/src/duration.rs b/components/calendar/src/duration.rs
index f2aa59901f..bac8e56487 100644
--- a/components/calendar/src/duration.rs
+++ b/components/calendar/src/duration.rs
@@ -11,6 +11,8 @@
/// Use [`DateDuration`] for calculating the difference between two [`Date`]s and adding
/// ... | 1 | 2 | 0 |
3e6a8c6c8349409e28f773fb9cc48aa01f96f0e8 | Manish Goregaokar | 2025-10-18T06:44:55 | Remove era aliases for Persian (#7124)
Fixes #7108 | diff --git a/components/calendar/src/cal/persian.rs b/components/calendar/src/cal/persian.rs
index 2fa8fd8707..17ad84d5ad 100644
--- a/components/calendar/src/cal/persian.rs
+++ b/components/calendar/src/cal/persian.rs
@@ -25,7 +25,7 @@ use calendrical_calculations::rata_die::RataDie;
///
/// # Era codes
///
-/// Th... | 1 | 2 | 2 |
60e61c31755ef2c64748dc0c4d19b4c6d816911b | Shane F. Carr | 2025-10-18T01:07:44 | Add comment for #7084 (#7085)
https://github.com/unicode-org/icu4x/pull/7066#discussion_r2420729780 | diff --git a/utils/zerotrie/src/builder/litemap.rs b/utils/zerotrie/src/builder/litemap.rs
index 41f991d7ac..d0be85c3b7 100644
--- a/utils/zerotrie/src/builder/litemap.rs
+++ b/utils/zerotrie/src/builder/litemap.rs
@@ -46,9 +46,6 @@ where
}
}
-// TODO(sffc): Make this more infallible by calculating the required... | 1 | 1 | 4 |
1f345f85e6a595328e1f7b44dce547b2d8489c7a | Manish Goregaokar | 2025-10-18T00:58:14 | Add allow(unreachable_code) around uses of PatternPlurals::MultipleVariants (#7119)
See: https://github.com/unicode-org/icu4x/issues/7118
Fixes nightly CI. | diff --git a/components/datetime/src/provider/fields/components.rs b/components/datetime/src/provider/fields/components.rs
index 504f9ab9b9..b3352076f6 100644
--- a/components/datetime/src/provider/fields/components.rs
+++ b/components/datetime/src/provider/fields/components.rs
@@ -182,7 +182,10 @@ impl Bag {
... | 2 | 8 | 1 |
8371b92075c90a689b6eb0a094bc6f15c19f364a | Manish Goregaokar | 2025-10-16T20:38:37 | Move DateFields::era over to being a byte slice (#7115)
Progress on https://github.com/unicode-org/icu4x/issues/7104. I didn't
touch MonthCode yet since it becomes easier after
https://github.com/unicode-org/icu4x/pull/7105/ lands. | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index 0967e4d177..0449f1ded5 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -22,7 +22,8 @@ pub(crate) trait GregorianYears: Clone ... | 21 | 80 | 60 |
da5bd98d3227870ee53f86bd87780b3426ba3db6 | Manish Goregaokar | 2025-10-15T16:01:02 | Gate Rules-helpers on unstable (#7094)
According to
https://github.com/unicode-org/icu4x/issues/6659#issuecomment-2967547180,
all experimental APIs should be *gated* (not hidden) on unstable. We
have not yet implemented the plan in that PR, but we should try to
follow it for new things behind the unstable feature.
h... | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 6cedc2463a..ba266b6071 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -39,6 +39,12 @@ mod simple;
///
/// This type can be used with [`Date`] to represent dates in th... | 4 | 30 | 6 |
ef40c67f25818db180eccf730e701f7bf9011e0e | Manish Goregaokar | 2025-10-15T13:43:56 | Add tests for NotEnoughFieldsError priority in Date::from_fields (#7098)
Fixes #7083 | diff --git a/components/calendar/src/tests/mod.rs b/components/calendar/src/tests/mod.rs
index 7cac2a901f..b753567880 100644
--- a/components/calendar/src/tests/mod.rs
+++ b/components/calendar/src/tests/mod.rs
@@ -4,3 +4,4 @@
mod continuity_test;
mod extrema;
+mod not_enough_fields;
diff --git a/components/calenda... | 2 | 238 | 0 |
5d982e3916363c8433e60156cd3910437ab16498 | Robert Bastian | 2025-10-14T16:31:11 | Put `Rules` behind `unstable` feature (#7092)
Fixes #6962 | diff --git a/components/calendar/Cargo.toml b/components/calendar/Cargo.toml
index 8c34fd5b68..b7c23ca5e4 100644
--- a/components/calendar/Cargo.toml
+++ b/components/calendar/Cargo.toml
@@ -55,6 +55,7 @@ logging = ["calendrical_calculations/logging"]
serde = ["dep:serde", "zerovec/serde", "tinystr/serde", "icu_provid... | 2 | 9 | 3 |
cdde6e8f36bfed81f36f19950dde6a238004b95f | Robert Bastian | 2025-10-14T16:04:28 | Remove TryWriteable::writeable_borrow (#7093)
#7004 | diff --git a/utils/potential_utf/src/writeable.rs b/utils/potential_utf/src/writeable.rs
index e3bb05aeee..726b84205c 100644
--- a/utils/potential_utf/src/writeable.rs
+++ b/utils/potential_utf/src/writeable.rs
@@ -48,10 +48,6 @@ impl TryWriteable for &'_ PotentialUtf8 {
// Lower bound is all valid UTF-8, uppe... | 2 | 0 | 30 |
50f3a55e004f35894d7ad38510bad17bcae1025c | Robert Bastian | 2025-10-14T15:24:22 | Implement `PartialOrd` for `Date` unconditionally (#7090)
Clients shouldn't need to add a `C::DateInner: PartialOrd` bound when
writing generic code.
https://github.com/unicode-org/icu4x/issues/3469 | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index c03b6ec018..e951fb5bb2 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -149,6 +149,32 @@ pub enum AnyDateInner {
Roc(<Roc as Calendar>::DateInner),
}
+impl P... | 6 | 50 | 3 |
8ae1a92e3f901b5dff6c86681478cca4e201413d | Robert Bastian | 2025-10-14T14:59:46 | Hebrew epoch is tested in `calendrical_calculations` (#7091) | diff --git a/components/calendar/src/cal/julian.rs b/components/calendar/src/cal/julian.rs
index 4093ab27e4..cc8643efea 100644
--- a/components/calendar/src/cal/julian.rs
+++ b/components/calendar/src/cal/julian.rs
@@ -531,14 +531,6 @@ mod test {
}
}
- #[test]
- fn test_hebrew_epoch() {
- a... | 2 | 1 | 10 |
b3e9ef657bb85efed2415b09babe29522b389892 | Manish Goregaokar | 2025-10-14T10:22:03 | Add debug unreachable check where we say it's unreachable (#7087)
https://github.com/unicode-org/icu4x/pull/7062#discussion_r2427744707 | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index 9f7e699e69..4492260d76 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -751,8 +751,10 @@ where
}
None =... | 1 | 4 | 2 |
7cd946f293903a02b6747e52c457fbf92c3de218 | Manish Goregaokar | 2025-10-14T10:21:41 | Add CLDR calendar codes to ICU4X calendar docs (#7082)
Fixes #7038
I didn't add things to `locale_core` but we could do that there too.
---------
Co-authored-by: Shane F. Carr <shane@unicode.org> | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 80c319e5a1..c03b6ec018 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -683,40 +683,76 @@ impl<C: AsCalendar<Calendar = AnyCalendar>> Date<C> {
#[derive(Copy, Clone... | 13 | 73 | 0 |
c812bb9855e5141fa87b4e00a54519e554fed829 | Shane F. Carr | 2025-10-14T08:00:08 | Don't use NonZeroU8 in DateFields (#7086)
Fixes #7009 | diff --git a/components/calendar/fuzz/fuzz_targets/construction.rs b/components/calendar/fuzz/fuzz_targets/construction.rs
index 5062b1e63f..b6256a5ce6 100644
--- a/components/calendar/fuzz/fuzz_targets/construction.rs
+++ b/components/calendar/fuzz/fuzz_targets/construction.rs
@@ -9,7 +9,6 @@ use icu_calendar::options... | 10 | 35 | 53 |
0a2a4cdf78beb466c083f143cae5514d8ee209d6 | Manish Goregaokar | 2025-10-13T16:07:33 | Throw error in Date::try_from_fields for very large year values. (#7062)
Fixes #7049
I put some effort into making sure that type errors are returned before
range errors, which makes it easier for Temporal to use this directly
(otherwise it would have to hoist type errors out to be 100% spec
compliant).
After discus... | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 81d04005f8..5fa74a6b6f 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -1068,6 +1068,7 @@ mod test {
use crate::types::DateFields;
use crate::types::MonthCode;... | 4 | 129 | 44 |
c3c3a962e5a996bbee063f2add8577b8f400c8e5 | Robert Bastian | 2025-10-13T15:16:22 | Remove `PrecomputedDataSource` trait (#7075)
This is an internal trait that was used by old offset code, but it's
unused now. | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 02de629a10..81d04005f8 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -3,10 +3,10 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use cr... | 4 | 5 | 37 |
23edea4d42970f373a29a0a8b175d6b0392e08c3 | Robert Bastian | 2025-10-13T11:35:29 | Remove `AnyDateInner::kind` (#7073)
This is only used in an unreachable panic.
Uncontroversial part of #7071 | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 99669de2ba..80c319e5a1 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -180,11 +180,8 @@ macro_rules! match_cal_and_date {
) => $e,
(&Self:... | 2 | 4 | 86 |
08e80fc3415276af3abd32b03a25a7c149bc54ed | Robert Bastian | 2025-10-10T15:26:53 | Remove unused deps (#7067)
These are available through `icu_provider`, which the beta toolchain
detects. | diff --git a/Cargo.lock b/Cargo.lock
index e72800c7e3..31449f9354 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1434,7 +1434,6 @@ dependencies = [
"smallvec",
"tinystr",
"writeable",
- "zerofrom",
"zerotrie",
"zerovec",
]
diff --git a/components/experimental/Cargo.toml b/components/experimental/Cargo.toml
ind... | 3 | 1 | 3 |
40b36de16aa9b0a41fdaf6d1fde7b66339f0b914 | Manish Goregaokar | 2025-10-10T09:18:22 | Fix Tabular behavior when estimating boundary years (#7057)
Fixes https://github.com/unicode-org/icu4x/issues/7056
We have a case where the estimated year is two years off.
I'm not sure if there's an underlying bug in the logic here. Perhaps the
+1 in `extended_year` estimation code is wrong?
---------
Co-authored... | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index fe9122c50c..d1e5b4425f 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -525,6 +525,7 @@ impl HijriYearData {
fn md_from_rd(self, rd: RataDie) -> (u8, u8) {
let d... | 1 | 35 | 17 |
8f1579a4615e09d42a5ec801b3297b76e54cf61e | Shane F. Carr | 2025-10-10T00:47:16 | Fix month constraining in reference year (#7061)
#6790 | diff --git a/components/calendar/src/cal/coptic.rs b/components/calendar/src/cal/coptic.rs
index ed16e04c7f..8f88af1a36 100644
--- a/components/calendar/src/cal/coptic.rs
+++ b/components/calendar/src/cal/coptic.rs
@@ -104,6 +104,19 @@ impl DateFieldsResolver for Coptic {
) -> Result<Self::YearInfo, DateError> {
... | 4 | 47 | 10 |
fcb6d53768ce4e3e7da85db15a6d707c3950a9d0 | Shane F. Carr | 2025-10-09T23:56:14 | Fix day-of-month constraining in MonthDay (#7060)
#6790 | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index 5507b3b669..fe9122c50c 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -243,23 +243,23 @@ impl Rules for UmmAlQura {
Ok(match (ordinal_month, day) {
(1, ... | 2 | 37 | 18 |
cf5b7ee8c06170b5644344ed1e63415770dfcd12 | Robert Bastian | 2025-10-09T07:28:17 | Expand docs for `Julian` and `Gregorian` (#7047) | diff --git a/components/calendar/src/cal/gregorian.rs b/components/calendar/src/cal/gregorian.rs
index faaca608e6..9f0abd405c 100644
--- a/components/calendar/src/cal/gregorian.rs
+++ b/components/calendar/src/cal/gregorian.rs
@@ -57,11 +57,36 @@ impl GregorianYears for CeBce {
}
}
-/// The [(proleptic) Gregori... | 3 | 68 | 13 |
b31494d7bc1d31c9d6f0d5cf7f41a281932d4de8 | Robert Bastian | 2025-10-08T21:03:48 | Use simple approximation for LunarChinese (#7006) | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 81a57e97b6..93cb0c92cd 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -25,6 +25,8 @@ mod china_data;
mod korea_data;
#[path = "chinese/qing_data.rs"]
mod qing_data;
... | 8 | 263 | 726 |
329aa64d04e229c47f04879204a811156eff9576 | Manish Goregaokar | 2025-10-07T02:30:43 | Fix panic when constraining out-of-range months (#7042)
Otherwise the day check panics since range.contains() doesn't like
checking backwards ranges, and `days_in_provided_month(year,
invalid_month)` produces 0. | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index ca000f4112..7bb5c0151a 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -383,18 +383,19 @@ impl<C: CalendarArithmetic> ArithmeticDate<C> {... | 2 | 24 | 7 |
5a56323558fb5732046be79ef2119278ce26758e | Robert Bastian | 2025-10-06T17:35:42 | Test Korean calendar against KASI (#7041) | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 2582f769bc..81a57e97b6 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -1063,6 +1063,7 @@ mod test {
use crate::types::DateFields;
use crate::types::MonthCode;... | 1 | 53 | 0 |
c0d1be5263c2c136c2ebab745fc29f3296f70c4c | Robert Bastian | 2025-10-06T14:21:23 | Add missing `alloc` docs (#7040)
https://github.com/unicode-org/icu4x/pull/6997#discussion_r2389256232 | diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs
index ad1b452cd7..25ec59b600 100644
--- a/components/calendar/src/date.rs
+++ b/components/calendar/src/date.rs
@@ -38,6 +38,7 @@ impl<C: Calendar> AsCalendar for C {
}
#[cfg(feature = "alloc")]
+/// ✨ *Enabled with the `alloc` Cargo fea... | 43 | 230 | 12 |
f78828840b67e354fa9907600b24fc4bcb12a4be | Henri Sivonen | 2025-10-06T11:29:58 | Document proleptic behavior of the Japanese calendars in more detail (#7036) | diff --git a/components/calendar/src/cal/japanese.rs b/components/calendar/src/cal/japanese.rs
index 1085d8d80c..3fb87ac437 100644
--- a/components/calendar/src/cal/japanese.rs
+++ b/components/calendar/src/cal/japanese.rs
@@ -17,7 +17,7 @@ use tinystr::tinystr;
/// The months and days are identical to that of the Gre... | 1 | 3 | 1 |
ec69a2f986e549bcb1f6cb4659b43fa9dcdd11b9 | Henri Sivonen | 2025-10-06T09:19:22 | Clarify the that the non-ISO dates are Julian in TabularAlgorithmEpoch docs (#7037) | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index 0ecf673874..5507b3b669 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -436,9 +436,9 @@ impl Hijri<UmmAlQura> {
#[non_exhaustive]
#[derive(Copy, Clone, Debug, Hash, Eq, Partia... | 1 | 2 | 2 |
21e2a18a242326d8d548bdadb4fd295e3e342f00 | Henri Sivonen | 2025-10-06T07:15:59 | Point out that AstronomicalSimulation is unofficial and users who are unsure probably want UmmAlQura instead (#7031)
Fixes #6210 | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index 28015a2ab4..0ecf673874 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -97,8 +97,9 @@ pub trait Rules: Clone + Debug + crate::cal::scaffold::UnstableSealed {
/// [`Hijri`] [`... | 1 | 7 | 2 |
bd87e6731dd04bde8f1c4db8438791d631826c02 | Henri Sivonen | 2025-10-03T10:47:30 | Document `UmmAlQura` more accurately (#7033)
#6963 | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index 5b8a299c3d..28015a2ab4 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -216,8 +216,13 @@ impl Rules for AstronomicalSimulation {
/// [`Hijri`] [`Rules`] for the [Umm al-Qura]... | 1 | 7 | 2 |
5a1d571161062b0f78920d9d1a17b128242bc0b7 | hex1c | 2025-10-03T07:57:18 | docs: fix minor typo in documentation (#7023)
While reading through the documentation, I noticed a small typo and
corrected it. | diff --git a/utils/yoke/src/yoke.rs b/utils/yoke/src/yoke.rs
index b370e050cf..b9efa243fa 100644
--- a/utils/yoke/src/yoke.rs
+++ b/utils/yoke/src/yoke.rs
@@ -1482,7 +1482,7 @@ impl<Y: for<'a> Yokeable<'a>, C> Yoke<Y, C> {
// Safety: safe because the cart is preserved, as it is just wrapped
unsafe { s... | 1 | 1 | 1 |
ae3223531c81c63fcc3e739212e3273a92eaf412 | Shane F. Carr | 2025-10-02T22:29:43 | Clarify that the Hijri rule sets are ICU4X Hijri (#7029)
#6963 | diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs
index ece27eae91..5b8a299c3d 100644
--- a/components/calendar/src/cal/hijri.rs
+++ b/components/calendar/src/cal/hijri.rs
@@ -95,7 +95,7 @@ pub trait Rules: Clone + Debug + crate::cal::scaffold::UnstableSealed {
}
}
-/// An... | 1 | 6 | 6 |
f73ca1596975da8007c04c14f8967d6744e99891 | Robert Bastian | 2025-10-02T21:18:55 | Allow different Hijri calendars to use different names (#7028)
#7005 | diff --git a/Cargo.lock b/Cargo.lock
index 7669ee53da..e72800c7e3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1340,6 +1340,7 @@ name = "icu_datetime"
version = "2.0.0"
dependencies = [
"bincode",
+ "calendrical_calculations",
"criterion",
"databake",
"displaydoc",
diff --git a/components/datetime/Cargo.toml ... | 5 | 94 | 1 |
e052b5ebdacbecb390ae0c8678dfcf1137612e16 | Robert Bastian | 2025-10-02T20:29:01 | More Hijri changes (#7027)
#6963 | diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs
index cc77cfbc96..3f05f8ecca 100644
--- a/components/calendar/src/cal/abstract_gregorian.rs
+++ b/components/calendar/src/cal/abstract_gregorian.rs
@@ -80,6 +80,7 @@ impl CalendarArithmetic for AbstractGre... | 4 | 166 | 71 |
eb6cd7b7dd468c6a7bc8c92e1a3e169736acdfda | Manish Goregaokar | 2025-10-01T21:04:09 | Rename chinese::Rules::reference_year_from_month_day to ecma_reference_year, add docs (#7021)
Fixes #6959 | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 15076f8791..1cf67dad1d 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -91,13 +91,25 @@ pub trait Rules: Clone + core::fmt::Debug + crate::cal::scaffold::UnstableSealed
... | 1 | 21 | 9 |
1a476cc18a9e42bbf47622b7d64ed6750684dd6d | Robert Bastian | 2025-10-01T16:21:37 | Make `icu_calendar`, `icu_time` no-alloc (#6981) | diff --git a/Cargo.lock b/Cargo.lock
index 9165342c19..7669ee53da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2113,10 +2113,12 @@ dependencies = [
name = "noalloctest"
version = "2.0.0"
dependencies = [
+ "icu_calendar",
"icu_collections",
"icu_locale_core",
"icu_properties",
"icu_provider",
+ "icu_time",
... | 29 | 175 | 128 |
9464e648359db5c804969f74276ff693603ed91f | Robert Bastian | 2025-10-01T15:34:12 | Ignore deprecated items for diplomat coverage (#7017) | diff --git a/tools/make/diplomat-coverage/src/allowlist.rs b/tools/make/diplomat-coverage/src/allowlist.rs
index 59862413fc..ffcaf6be85 100644
--- a/tools/make/diplomat-coverage/src/allowlist.rs
+++ b/tools/make/diplomat-coverage/src/allowlist.rs
@@ -128,23 +128,16 @@ lazy_static::lazy_static! {
"icu::calendar... | 2 | 2 | 9 |
6bfd662f6621f9be3ccd2fe1c5804c5fed6477aa | Manish Goregaokar | 2025-10-01T10:08:25 | Hardcode KASI-derived data (#7008)
The code and data used for fetching this will be pushed up to a separate
(private) Unicode repo once we have one. You can find the cleaned up
source data in
https://gist.github.com/Manishearth/d8c94a7df22a9eacefc4472a5805322e.
I'm imagining that post-1950 data will change or be remo... | diff --git a/components/calendar/src/cal/chinese/dangi_data.rs b/components/calendar/src/cal/chinese/dangi_data.rs
index 90ad93af79..b53883f990 100644
--- a/components/calendar/src/cal/chinese/dangi_data.rs
+++ b/components/calendar/src/cal/chinese/dangi_data.rs
@@ -6,7 +6,7 @@
use crate::provider::chinese_based::Pa... | 1 | 10 | 6 |
76770d80085f791a421b52643a33a37ae014470c | Manish Goregaokar | 2025-10-01T09:23:14 | Add Dangi to generate_reference_years, fix reference year checking test (#7013)
In https://github.com/unicode-org/icu4x/pull/7007/files#r2393049682 I
noticed a Korean reference year was incorrect. At first I thought it was
due to a KASI mismatch, but it turns out our algorithm matches KASI from
1912 onwards (https://g... | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 9c20dc8da4..a3f21674c3 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -348,7 +348,7 @@ impl Rules for Dangi {
(2, true, false) => 1947,
(2, tr... | 2 | 221 | 93 |
ea2ce2a22ace4f42876b1da0243fc70855f98a10 | Zhao Gang | 2025-10-01T07:09:19 | Update to use new API (#6980)
Feature char_indices_offset is stabilized in Rust 1.82 (current
rust-version of icu). So changed to use it.
<!--
Thank you for your pull request to ICU4X!
Reminder: try to use [Conventional
Comments](https://conventionalcomments.org/) to make comments clearer.
Please see
https://github... | diff --git a/components/collator/tests/tests.rs b/components/collator/tests/tests.rs
index d5da8a6d89..8f4be54f7d 100644
--- a/components/collator/tests/tests.rs
+++ b/components/collator/tests/tests.rs
@@ -126,18 +126,23 @@ fn test_currency() {
options.strength = Some(Strength::Quaternary);
let collator = ... | 1 | 16 | 11 |
66aba40f38daca55c034b9549bddca5c0eb7cafa | Robert Bastian | 2025-09-30T21:35:43 | Compute LunarChinese reference years with new algorithm (#7007) | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index c6d3feda26..9c20dc8da4 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -176,8 +176,7 @@ impl Rules for China {
let Some((number, is_leap)) = month_code.parsed()... | 1 | 83 | 26 |
ae7a239c8d1a445e2019a1a680547d4794d428ee | Robert Bastian | 2025-09-30T09:37:07 | Make `icu_collections`, `icu_properties` no-alloc (#6998)
#6984 | diff --git a/Cargo.lock b/Cargo.lock
index 2a7d8df3e2..338f06bf81 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2113,7 +2113,9 @@ dependencies = [
name = "noalloctest"
version = "2.0.0"
dependencies = [
+ "icu_collections",
"icu_locale_core",
+ "icu_properties",
"icu_provider",
"litemap",
"potential_utf",
dif... | 11 | 45 | 25 |
577f4b22505c9ecb2f055f7095e72f7f6911418b | Shane F. Carr | 2025-09-29T23:25:37 | New data model for DateDuration (#6992) | diff --git a/components/calendar/benches/date.rs b/components/calendar/benches/date.rs
index 83a8365d32..6f44e2c2d2 100644
--- a/components/calendar/benches/date.rs
+++ b/components/calendar/benches/date.rs
@@ -25,12 +25,13 @@ use icu_calendar::{AsCalendar, Calendar, Date, DateDuration};
fn bench_date<A: AsCalendar>(d... | 19 | 223 | 266 |
0897c66f7e88827395a344eebe6a6921dc6fcc37 | Shane F. Carr | 2025-09-29T21:35:46 | Minor docs feedback from #6965 (#6994)
The reason should justify the existence of the test, not the greediness of the DCE lint. | diff --git a/utils/zerovec/src/hashmap/serde.rs b/utils/zerovec/src/hashmap/serde.rs
index 67124d0c18..68084e9177 100644
--- a/utils/zerovec/src/hashmap/serde.rs
+++ b/utils/zerovec/src/hashmap/serde.rs
@@ -73,7 +73,7 @@ mod test {
#[derive(Serialize, Deserialize)]
#[allow(
dead_code,
- reason... | 5 | 9 | 9 |
fe0c3419a98e8e8f05fdc69505d64a7f5247ac38 | Robert Bastian | 2025-09-29T16:54:47 | Make `icu_locale_core`, `icu_provider` no-alloc (#6997)
#6984 | diff --git a/Cargo.lock b/Cargo.lock
index 55497eb44d..2a7d8df3e2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2113,6 +2113,8 @@ dependencies = [
name = "noalloctest"
version = "2.0.0"
dependencies = [
+ "icu_locale_core",
+ "icu_provider",
"litemap",
"potential_utf",
"tinystr",
diff --git a/components/casemap... | 30 | 159 | 69 |
32c42c8aa5b21b198a8e42cd9484623b78cb1ebd | Robert Bastian | 2025-09-29T16:37:56 | Make `writeable` no-alloc (#6985)
#6984 | diff --git a/Cargo.lock b/Cargo.lock
index 75b3c15c58..55497eb44d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2116,6 +2116,7 @@ dependencies = [
"litemap",
"potential_utf",
"tinystr",
+ "writeable",
"yoke",
"zerofrom",
"zerotrie",
diff --git a/components/locale_core/Cargo.toml b/components/locale_core/Carg... | 24 | 147 | 90 |
9d37b7c654507b2bb98070a9a3616479fd231607 | Robert Bastian | 2025-09-29T16:30:09 | Make `Rules` traits unstable (#6999)
Fixes #6962 | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 397214ef75..6528dae9e6 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -79,12 +79,19 @@ pub struct LunarChinese<X>(pub X);
///
/// For example, the [`China`] type impl... | 3 | 44 | 26 |
90eb21ee60e78ffc570913a2e4edac04e63fe943 | Robert Bastian | 2025-09-29T16:20:46 | Use `serde_core` where possible (#6991) | diff --git a/Cargo.lock b/Cargo.lock
index e939ec441c..75b3c15c58 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1982,7 +1982,7 @@ dependencies = [
"postcard",
"rand",
"rkyv",
- "serde",
+ "serde_core",
"serde_json",
"yoke",
]
@@ -2352,7 +2352,7 @@ version = "0.1.3"
dependencies = [
"bincode",
"databake",... | 22 | 121 | 257 |
89a673e239f273ed124433b8dc15831d129ac70b | Shane F. Carr | 2025-09-26T12:07:04 | Fix relativetime preferences to observe numbering system (#6928)
Found by conformance testing:
https://github.com/unicode-org/conformance/issues/530
---------
Co-authored-by: Robert Bastian <robertbastian@unicode.org> | diff --git a/components/experimental/src/relativetime/mod.rs b/components/experimental/src/relativetime/mod.rs
index 2ca0bce978..eb90221818 100644
--- a/components/experimental/src/relativetime/mod.rs
+++ b/components/experimental/src/relativetime/mod.rs
@@ -13,5 +13,6 @@ mod relativetime;
pub use format::FormattedR... | 3 | 32 | 3 |
48a04a60034524b47f49ef3909776d86138f843c | Manish Goregaokar | 2025-09-25T14:50:55 | Re-remove range-check from Gregorian calendars (#6986)
This is a regression from https://github.com/unicode-org/icu4x/pull/6975
and breaks Temporal. I missed it during review because I thought the
`year_check` code only got hit in `from_codes`, not realizing that
`from_codes` was implemented in terms of `from_fields` ... | diff --git a/components/calendar/src/cal/gregorian.rs b/components/calendar/src/cal/gregorian.rs
index a73a851b68..f08227e631 100644
--- a/components/calendar/src/cal/gregorian.rs
+++ b/components/calendar/src/cal/gregorian.rs
@@ -4,7 +4,6 @@
use crate::cal::abstract_gregorian::{impl_with_abstract_gregorian, Gregori... | 4 | 183 | 390 |
a343251d736b05a19f02f70b61fec60355239291 | Manish Goregaokar | 2025-09-23T16:42:28 | Fix some bugs in the constrain logic (#6969)
- Chinese wasn't applying constrain logic at all
- Because reference year is computed before we apply
`Overflow::Constrain`, Coptic (and Ethiopic) were producing the wrong
reference year for M13-06 (a leap day).
- Chinese didn't have month code constraining implemented
F... | diff --git a/components/calendar/src/cal/chinese.rs b/components/calendar/src/cal/chinese.rs
index 9ee1cc45d0..05f9c4466c 100644
--- a/components/calendar/src/cal/chinese.rs
+++ b/components/calendar/src/cal/chinese.rs
@@ -6,7 +6,7 @@ use crate::cal::iso::{Iso, IsoDateInner};
use crate::calendar_arithmetic::{Arithmeti... | 8 | 144 | 86 |
945808d62def356214eef93d27de64f6c66585bc | Robert Bastian | 2025-09-23T09:28:28 | Implement Ethiopian in terms of Coptic (#6952)
These are the same calendar, just using different eras. | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index ce9e140517..b9e43de61d 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -819,8 +819,12 @@ impl AnyCalendarKind {
AnyCalendarKind::Chinese => LunarChinese... | 3 | 79 | 138 |
f9c7f28925a675b88fc47eb71bbf0a4ba533bb9a | Robert Bastian | 2025-09-22T16:37:20 | Hijri follow-ups (#6964)
Fixes https://github.com/unicode-org/icu4x/issues/6961 | diff --git a/components/calendar/benches/date.rs b/components/calendar/benches/date.rs
index 86c89b53fd..56c4206011 100644
--- a/components/calendar/benches/date.rs
+++ b/components/calendar/benches/date.rs
@@ -184,7 +184,7 @@ fn date_benches(c: &mut Criterion) {
"calendar/islamic/ummalqura",
&fxs,
... | 18 | 72 | 291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.