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
783c0ca03dfd0cd853879b3e77aaa8a54d88c3fc
jek
2017-10-05T15:21:02
fix case where precision > scale and add more tests
diff --git a/src/decimal.rs b/src/decimal.rs index f9394f9..ee266f2 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -646,7 +646,7 @@ impl ToPrimitive for Decimal { } else { sign = Plus; } - + BigInt::from_bytes_le(sign, &bytes[..]).to_f64() ...
2
60
10
2285f69e2a83b098cda0ca0990c3e1bdac15bf71
jek
2017-10-05T00:52:43
add formatting
diff --git a/src/decimal.rs b/src/decimal.rs index a9d445e..f9394f9 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -699,6 +699,10 @@ impl fmt::Display for Decimal { let mut rep = uint.to_string(); let len = rep.len(); + if let Some(n_dp) = f.precision() { + rep.truncate(len - ...
2
30
6
067b940064cb840e7944a2b43a9592a53c258878
Paul Mason
2017-10-04T14:42:49
Replace deserialize_any with deserialize_str for bincode support
diff --git a/src/serde_types.rs b/src/serde_types.rs index 74c9e67..ab57af6 100644 --- a/src/serde_types.rs +++ b/src/serde_types.rs @@ -4,13 +4,12 @@ use serde; use std::fmt; use std::str::FromStr; use serde::de::Unexpected; -use num::Zero; impl<'de> serde::Deserialize<'de> for Decimal { fn deserialize<D>(d...
1
6
5
bfc3bcf8de470f0746d866bedd086d2fa7a7a0a9
Paul Mason
2017-10-04T14:09:36
Remove postgres from default feature set
diff --git a/Cargo.toml b/Cargo.toml index 7342222..27740de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,4 @@ serde_json = "1.0" serde_derive = "1.0" [features] -default = ["postgres","serde"] \ No newline at end of file +default = ["serde"] \ No newline at end of file
1
1
1
f67e2fdac8b5b6e2446bab583ad95f14553eeff6
Paul Mason
2017-08-28T16:31:39
Version bump 0.4
diff --git a/Cargo.toml b/Cargo.toml index 3d3fc5e..a92d8c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.3.1" +version = "0.4.0" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial...
1
1
1
5736d53107ee1c161b8ac668e9afc7a80aefaced
Michael Mattig
2017-08-27T20:47:12
Unify error handling
diff --git a/src/serde_types.rs b/src/serde_types.rs index 0c2fe80..74c9e67 100644 --- a/src/serde_types.rs +++ b/src/serde_types.rs @@ -19,11 +19,10 @@ struct DecimalVisitor; impl<'de> serde::de::Visitor<'de> for DecimalVisitor { type Value = Decimal; - fn visit_f64<E>(self, value: f64) -> Result<Decimal, E...
1
4
5
a086aef20f5032383d01191b6e22948f3f05438a
Michael Mattig
2017-08-27T13:11:26
Added f64 deserialize method
diff --git a/src/serde_types.rs b/src/serde_types.rs index 136ab63..0c2fe80 100644 --- a/src/serde_types.rs +++ b/src/serde_types.rs @@ -4,6 +4,7 @@ use serde; use std::fmt; use std::str::FromStr; use serde::de::Unexpected; +use num::Zero; impl<'de> serde::Deserialize<'de> for Decimal { fn deserialize<D>(des...
1
8
0
f8707027d2065bae660b77cfb0d6f8614a5db529
Michael Mattig
2017-08-27T13:03:38
Add to_f64 method
diff --git a/src/decimal.rs b/src/decimal.rs index 296878d..eadd445 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -636,6 +636,26 @@ impl FromPrimitive for Decimal { } impl ToPrimitive for Decimal { + + fn to_f64(&self) -> Option<f64> { + if self.scale() == 0 { + let bytes = self.unsigned_...
2
30
0
537a78e7806dd642dd8efd0fd729e0c9071e9d51
Paul Mason
2017-08-25T20:29:54
Remove float impl as it introduces inaccuracy
diff --git a/src/decimal.rs b/src/decimal.rs index 45fe270..296878d 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -85,7 +85,7 @@ impl Decimal { /// /// # Arguments /// - /// * `num` - An i64 that represents the `m` portion of the decimal number + /// * `num` - An i64 that represents the `m` ...
2
10
12
e5eff4e0b7ae93c81ae7c4782a044cc28d4b5436
Johannes Droenner
2017-08-21T15:22:24
Adapt to postgres 0.15
diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 6dc6a1b..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,418 +0,0 @@ -[root] -name = "rust_decimal" -version = "0.3.1" -dependencies = [ - "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.8 (registry+https://gi...
3
8
423
ee96a9103f597f837167e415d651cd0dec9a36ab
Nikolai Vazquez
2017-08-20T06:45:10
Remove static reference for POWERS_10
diff --git a/src/decimal.rs b/src/decimal.rs index a1565fd..45fe270 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -35,7 +35,7 @@ lazy_static! { } // Fast access for 10^n where n is 0-9 -static POWERS_10: &'static [u32; 10] = &[ +static POWERS_10: [u32; 10] = [ 1, 10, 100, @@ -48,7 +48,7 @@ stat...
1
2
2
4aaf35d51de233a7cf6f2658da270dfe3cd5ee94
Paul Mason
2017-08-19T23:37:19
Further documentation for additional public methods
diff --git a/src/decimal.rs b/src/decimal.rs index 7d89174..a1565fd 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -120,6 +120,11 @@ impl Decimal { ((self.flags & SCALE_MASK) >> SCALE_SHIFT) as u32 } + /// An optimized method for changing the sign of a decimal number. + /// + /// # Argumen...
1
48
19
05a8d86a1eb0b0b768ffdb8852f6b535017897d4
Paul Mason
2017-08-19T23:23:06
Minor documentation additions
diff --git a/src/decimal.rs b/src/decimal.rs index b27bb2b..7d89174 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -81,20 +81,18 @@ pub struct Decimal { #[allow(dead_code)] impl Decimal { - /// Returns a `Decimal` with the underlying integer representation and scale. + /// Returns a `Decimal` with a 64 b...
1
6
7
31c508276493db18c944f7676e09e8c61911dd3f
JP-Ellis
2017-06-21T03:31:34
Replace ToString with fmt::Display If `fmt::Display` is implemented, then `ToString` is automatically implemented as a result. Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/decimal.rs b/src/decimal.rs index f150123..49f57f3 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -3,6 +3,7 @@ use num::{BigInt, BigUint, FromPrimitive, Integer, One, ToPrimitive, Zero}; use num::bigint::Sign::{Minus, Plus}; use std::cmp::*; use std::cmp::Ordering::Equal; +use std::fmt; use st...
1
40
41
1a52f8949781ac1d470775ae3bd09ca7de1f4eef
JP-Ellis
2017-06-21T03:18:22
Update to rustfmt 0.9.0 Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/decimal.rs b/src/decimal.rs index dea6f81..f150123 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -34,18 +34,31 @@ lazy_static! { } // Fast access for 10^n where n is 0-9 -static POWERS_10: &'static [u32; 10] = &[1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]; +stat...
5
172
129
09be31d7bd664224631571fc8a3c564d88360289
JP-Ellis
2017-06-21T03:12:39
Update dependencies Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/Cargo.lock b/Cargo.lock index 9b7d241..93cc82e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,16 +3,24 @@ name = "rust_decimal" version = "0.3.0" dependencies = [ "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.2 (registry+https://github.com/rust-lang/crate...
1
232
64
7070f664a6c2467662f0134597deb0eebb751ee0
JP-Ellis
2017-06-10T09:04:01
Create library error type Making `&'static str` the public error type means that it cannot be changed in the future. Using a library-specific Error type allows for non-breaking changes in the future. Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/decimal.rs b/src/decimal.rs index 677eba9..dea6f81 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -1,3 +1,4 @@ +use Error; use num::{BigInt, BigUint, FromPrimitive, Integer, One, ToPrimitive, Zero}; use num::bigint::Sign::{Minus, Plus}; use std::cmp::*; @@ -301,13 +302,13 @@ impl Decimal { ...
3
45
10
eaffde9e446bdccccae9223f738b3a2c692cf2b2
JP-Ellis
2017-06-10T04:45:55
Run rustfmt on all the code Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/lib.rs b/src/lib.rs index eb96f7f..41541b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,8 @@ extern crate num; extern crate serde; extern crate serde_json; -#[macro_use] extern crate lazy_static; +#[macro_use] +extern crate lazy_static; #[macro_use] #[cfg(feature = "postgres")] @@ -10,14 ...
4
147
140
d2c89a3c31d59ba98f6a1fe32f696f4cd33f1b61
JP-Ellis
2017-06-10T04:06:00
Reorganize tests from postgres.rs Note that as I am unable to run them myself, I'm unsure whether they would be better in the `tests/` directory. Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/postgres.rs b/src/postgres.rs index d3dfcf6..63dc6e9 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -14,11 +14,6 @@ use self::byteorder::{BigEndian, ReadBytesExt, WriteBytesExt}; use self::num::{BigUint, One, Zero, ToPrimitive}; use self::num::bigint::ToBigUint; -#[cfg(test)] -use pg_crate::...
1
84
60
706922fff5953b7fe891b394d29b5eb6194142e1
JP-Ellis
2017-06-10T04:00:41
Re-organize tests from lib.rs Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/lib.rs b/src/lib.rs index 369f954..eb96f7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -980,109 +980,80 @@ impl Ord for Decimal { } } -// PRIVATE TESTS -// Rescale -// nb: these choose different constants (u32, u64, calculated) - -#[test] -fn it_rescales_integer_up_1() { - let a = Decimal...
2
84
91
57b407177ffbea0995bc1be30efea6387c19f2e3
JP-Ellis
2017-06-09T15:07:59
Replace ToDecimal with From/Into From and Into are traits from the Rust standard library intended to be used precisely when types need to be converted into one another (without failing). Signed-off-by: JP-Ellis <josh@jpellis.me>
diff --git a/src/lib.rs b/src/lib.rs index 44d4b44..369f954 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -370,32 +370,27 @@ impl Decimal { } } -pub trait ToDecimal { - /// Converts the value of `self` to a `Decimal`. - fn to_decimal(&self) -> Option<Decimal>; -} - -macro_rules! impl_to_decimal { +macro_rul...
1
36
19
ed602d91136f0651ce489396945ff0765b6c23b7
Paul Mason
2017-06-01T16:11:29
Minor revision bump for crates.io
diff --git a/Cargo.toml b/Cargo.toml index 22a913e..f83b6c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.2.0" +version = "0.2.1" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial c...
1
1
1
68f9fdb2b142139504ee8ea86c462aba56ab9ec0
Joonas Koivunen
2017-06-01T15:55:56
Cargo: Add newline at the end of file
diff --git a/Cargo.toml b/Cargo.toml index 316f417..22a913e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,4 @@ byteorder = "1.0" serde = "1.0" serde_json = "1.0" lazy_static = "0.2" -postgres = { version = "0.14", optional = true } \ No newline at end of file +postgres = { version = "0.14", optional = true }
1
1
1
a067c57aeda767497d1a4b114779073296acff19
Joonas Koivunen
2017-06-01T15:55:26
Added repository url to cargo metadata
diff --git a/Cargo.toml b/Cargo.toml index 617ac36..316f417 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ name = "rust_decimal" version = "0.2.0" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial calculations." +repository = "ht...
1
1
0
9b6a87be43f9cccb27041d0fbb13a748245a8c72
Paul Mason
2017-06-01T14:56:39
Version bump to 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index ab37ea5..617ac36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.1.4" +version = "0.2.0" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial c...
1
3
3
c84e520b193af1bdffbeb4bf536de00bb786a5fe
Lars Reichardt
2017-06-01T10:07:05
Bump serde to 1.0
diff --git a/Cargo.toml b/Cargo.toml index 2e36fcc..ab37ea5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" [dependencies] num = "0.1" byteorder = "1.0" -serde = "0.9" -serde_json = "0.9" +serde = "1" +serde_json = "1" lazy_static = "0.2" postgres = { version = "0.14", optional = true } \ ...
2
6
6
0d9c7cd23a1c0ba1a273b7dd567349bc86bc2207
Paul Mason
2017-02-28T18:12:13
Version bump
diff --git a/Cargo.toml b/Cargo.toml index 1af7dd4..2e36fcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.1.3" +version = "0.1.4" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial c...
1
1
1
a138cb4c33c4516863da63e2b54bd48e14919a72
Paul Mason
2017-02-28T14:34:37
Minor optimization to remove unnecessary clones during division
diff --git a/src/lib.rs b/src/lib.rs index 11b0d4e..44d4b44 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -896,7 +896,7 @@ impl<'a, 'b> Div<&'b Decimal> for &'a Decimal { // This is slightly too agressive. But it is just being safe. We need to check against Decimal::MAX while !rem.is_zero() && fractio...
1
2
2
37eea35703cdaecc013ff3a15c0ed4f43531831a
Paul Mason
2017-02-24T19:23:27
Bump version for publishing
diff --git a/Cargo.toml b/Cargo.toml index 67f21be..1af7dd4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.1.2" +version = "0.1.3" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial c...
1
1
1
41817fa061ccbd6b358bb00a1f5cbb250d9ef113
Josh Holmer
2017-02-24T19:03:39
Bump dependencies, most notably postgres to 0.14, which is not backwards compatible with 0.13
diff --git a/Cargo.toml b/Cargo.toml index 7b1b298..67f21be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,8 +7,8 @@ license = "MIT" [dependencies] num = "0.1" -byteorder = "0.5.3" +byteorder = "1.0" serde = "0.9" serde_json = "0.9" -lazy_static = "0.1.16" -postgres = { version = "0.13.6", optional = true } \ No ...
2
5
6
e7c35ffa2359002ac1fbfd4a36bfcf8d9dd5ac18
Paul Mason
2017-02-21T18:02:55
Bump version number
diff --git a/Cargo.toml b/Cargo.toml index ae85718..7b1b298 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal" -version = "0.1.1" +version = "0.1.2" authors = ["Paul Mason <paul@form1.co.nz>"] description = "A Decimal Implementation written in pure Rust suitable for financial c...
1
1
1
f08954303c1774fb7f3cdffc20677e2d9d68871f
Josh Holmer
2017-02-21T05:22:59
Bump serde to 0.9
diff --git a/Cargo.toml b/Cargo.toml index f39c6f4..d3528b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,17 +2,13 @@ name = "rust_decimal" version = "0.1.1" authors = ["Paul Mason <paul@form1.co.nz>"] -build = "build.rs" description = "A Decimal Implementation written in pure Rust suitable for financial calculati...
4
21
30
9059842d2f0d94cc7f2828916ae0af26bd0d4b2e
Josh Holmer
2017-02-21T04:23:07
Implement ToSql for Postgres
diff --git a/Cargo.toml b/Cargo.toml index f39c6f4..a014c85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,4 @@ byteorder = "0.5.3" serde = "0.8" serde_json = "0.8" lazy_static = "0.1.16" -postgres = { version = "0.13.1", optional = true } \ No newline at end of file +postgres = { version = "0.13.6", optional...
3
142
39
5ed731331e97b355445eef2d863ae8512664f05e
Paul Mason
2017-01-22T21:33:33
Fixed version in cargo file
diff --git a/Cargo.toml b/Cargo.toml index f82ac1b..f39c6f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,9 @@ license = "MIT" serde_codegen = "0.8" [dependencies] -num = "*" -byteorder = "*" +num = "0.1" +byteorder = "0.5.3" serde = "0.8" serde_json = "0.8" -lazy_static = "0.1.*" -postgres = { version = ...
1
4
4
ca1c89eca58e5cfcab24176a03c892f9244ea1be
Paul Mason
2017-01-22T21:30:23
Added license and description
diff --git a/Cargo.toml b/Cargo.toml index 2677134..f82ac1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,8 @@ name = "rust_decimal" version = "0.1.1" authors = ["Paul Mason <paul@form1.co.nz>"] build = "build.rs" +description = "A Decimal Implementation written in pure Rust suitable for financial calculations...
1
2
0
5a3c265c2db75e8c16a81b13c8f5e21e053a4b43
Manish Goregaokar
2026-04-10T00:02:50
Fix TrailingCase::Unchanged handling for Dutch (#7863) Fixes #7681 I couldn't figure out an easy way to keep the dutch handling within `full_helper` (where all other locale-sensitive stuff lives), since this is the one case that actually affects the titlecasing uppercase-to-lowercase state change. I think this impl...
diff --git a/components/casemap/src/internals.rs b/components/casemap/src/internals.rs index 3288bea1f9..a32f97355a 100644 --- a/components/casemap/src/internals.rs +++ b/components/casemap/src/internals.rs @@ -65,11 +65,38 @@ impl<'a, const IS_TITLE_CONTEXT: bool> Writeable for FullCaseWriteable<'a, '_, I let...
2
312
159
d798286d5a0618bab5fe823d6e133bd99aad24b1
Manish Goregaokar
2026-04-08T22:54:38
Update diplomat-runtime to fix wasm on nightly (#7858) Pulls in https://github.com/rust-diplomat/diplomat/pull/1099 ## Changelog: N/A
diff --git a/Cargo.lock b/Cargo.lock index 3ea8aada8d..5302fbecb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -788,9 +788,9 @@ dependencies = [ [[package]] name = "diplomat-runtime" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "640d5943a101226...
2
3
3
20b106f661064f21182e15ce25e3e4b36be69c04
Shane F. Carr
2026-04-02T16:50:44
Fix extended year calculations by adding internal types AbstractGregorianYear, CopticYear (#7849) #7847 This only adds AbstractGregorianYear and CopticYear, but those are the hardest and also the most impactful. It doesn't touch calendars like Indian and Persian where i32 == extended year == internal year. No AI was...
diff --git a/components/calendar/src/cal/abstract_gregorian.rs b/components/calendar/src/cal/abstract_gregorian.rs index 6806366294..db75cbae8b 100644 --- a/components/calendar/src/cal/abstract_gregorian.rs +++ b/components/calendar/src/cal/abstract_gregorian.rs @@ -3,7 +3,7 @@ // (online at: https://github.com/unicod...
15
391
129
c9fac4e625ccb2c6a7aa35079fff9709db4385ac
Shane F. Carr
2026-03-31T20:54:19
Add third party docs in icu_calendar and icu_time (#7839) Depends on #7838 ## Changelog N/A (docs only) --------- Co-authored-by: Gemini <176961590+gemini-code-assist[bot]@users.noreply.github.com>
diff --git a/components/calendar/src/lib.rs b/components/calendar/src/lib.rs index c4907989f0..f3d31e885f 100644 --- a/components/calendar/src/lib.rs +++ b/components/calendar/src/lib.rs @@ -101,6 +101,8 @@ pub mod cal; pub mod options; pub mod provider; pub mod types; +#[path = "third_party.rs"] +pub mod unstable_t...
4
209
0
f744c25c5d244f0698756e95cbe2825dee8aa37c
Shane F. Carr
2026-03-31T18:04:07
Move displaynames status box to correct module (#7840) #3260 ## Changelog N/A (docs only)
diff --git a/components/experimental/src/displaynames/mod.rs b/components/experimental/src/displaynames/mod.rs index d57eaf9520..ad7d4e431c 100644 --- a/components/experimental/src/displaynames/mod.rs +++ b/components/experimental/src/displaynames/mod.rs @@ -41,8 +41,6 @@ //! assert_writeable_eq!(gb, "United Kingdom")...
1
9
11
8f5a93c63898e140d3c6139059bd69be43cb1a8b
Manish Goregaokar
2026-03-31T16:51:54
Update example lockfiles (#7829) https://github.com/unicode-org/icu4x/issues/7809 ## Changelog: N/A <!-- Please fill in according to documents/process/changelog.md -->
diff --git a/examples/cargo/harfbuzz/Cargo.lock b/examples/cargo/harfbuzz/Cargo.lock index fced62d840..eac0b46afa 100644 --- a/examples/cargo/harfbuzz/Cargo.lock +++ b/examples/cargo/harfbuzz/Cargo.lock @@ -10,9 +10,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name ...
1
60
60
a2df967cbcc479812cee63edfb5f8395733620a8
Manish Goregaokar
2026-03-31T16:51:25
Add link to ICU4C issue (#7836) Followup to https://github.com/unicode-org/icu4x/pull/7835 ## Changelog: N/A
diff --git a/components/collator/src/elements.rs b/components/collator/src/elements.rs index fc4c062289..56b95edafe 100644 --- a/components/collator/src/elements.rs +++ b/components/collator/src/elements.rs @@ -2103,6 +2103,8 @@ where // a chunk to 254 digits on a previous round...
1
2
0
1398bdb8459e5ad1509c29cdbc128c00b7b634e5
Shane F. Carr
2026-03-27T21:23:18
Add ScriptDisplayName (#7819) #3260 ## Changelog icu_experimental/displaynames: - New type: `ScriptDisplayName`
diff --git a/components/experimental/src/displaynames/displaynames.rs b/components/experimental/src/displaynames/displaynames.rs index 63098c18e8..43f04fc954 100644 --- a/components/experimental/src/displaynames/displaynames.rs +++ b/components/experimental/src/displaynames/displaynames.rs @@ -46,143 +46,6 @@ pub struc...
3
293
152
2e9f90ea2e0ecc32bff64a94ea5e8a2219b857ac
Shane F. Carr
2026-03-26T00:51:06
Clarify the intended use case of DateDuration (#7817) #7771
diff --git a/components/calendar/src/duration.rs b/components/calendar/src/duration.rs index 1dc7c8e59b..4d35b0019e 100644 --- a/components/calendar/src/duration.rs +++ b/components/calendar/src/duration.rs @@ -10,9 +10,13 @@ use crate::error::DateDurationParseError; /// "1 month" is represented as "1 month" in the da...
1
6
2
9f3cf633cacb2354737437759ae535f24bc033ed
Shane F. Carr
2026-03-26T00:01:21
RegionDisplayName::try_new_short (#7807) #3260
diff --git a/components/experimental/src/displaynames/displaynames.rs b/components/experimental/src/displaynames/displaynames.rs index 6c079890c7..63098c18e8 100644 --- a/components/experimental/src/displaynames/displaynames.rs +++ b/components/experimental/src/displaynames/displaynames.rs @@ -66,8 +66,7 @@ impl Region...
1
67
2
780205709202f59583091b71667a23b63ed4307b
Shane F. Carr
2026-03-25T00:07:29
Add docs for `impl From<u8> for Month` (#7776) ## Changelog: N/A
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 8824774e54..03c1834023 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -178,6 +178,9 @@ impl<A: AsCalendar> Date<A> { /// let date_iso = Date::try_new(1970.into(), Month::new(1), 2, Iso) ...
2
18
2
d3d8fee741b7acd4057d067a1e4a9b148430ea38
Shane F. Carr
2026-03-24T23:55:41
Add RegionDisplayName that directly implements Writeable (#7697) #3260 / #3913 ## Changelog icu_experimental/displaynames: Add RegionDisplayName for loading a single display name - New type: `RegionDisplayName`
diff --git a/components/experimental/src/displaynames/displaynames.rs b/components/experimental/src/displaynames/displaynames.rs index 4c36982a46..6c079890c7 100644 --- a/components/experimental/src/displaynames/displaynames.rs +++ b/components/experimental/src/displaynames/displaynames.rs @@ -25,7 +25,7 @@ define_pref...
2
92
5
43d4d6f154083f40f27f7ff42dd55bef78dee80d
Rizzen
2026-03-24T19:25:35
Duration bug fix: Re-exporting of needed types (#7784) Fixes #7780 Inserted 1 line into `components/experimental/src/duration/mod.rs` for the re-exporting of DurationFormatterOptionsError and ValidatedDurationFormatterOptions types. ## Changelog icu_experimental/duration: Export more needed types - Newly public typ...
diff --git a/components/experimental/src/duration/mod.rs b/components/experimental/src/duration/mod.rs index 722afab845..3c440ab064 100644 --- a/components/experimental/src/duration/mod.rs +++ b/components/experimental/src/duration/mod.rs @@ -18,3 +18,4 @@ pub use duration::{Duration, DurationSign}; pub use format::Fo...
2
11
5
56afe569063642c6bf243e6681f22e56deb958e2
Manish Goregaokar
2026-03-20T00:51:23
Handle possible Overflow values on individual calendars (#7795) Fixes #7794. `overflow` takes three values: `Constrain`, `Reject`, and `None`. `None` is equivalent to `Constrain`, but we don't have a `ResolvedOptions` type to fix that distinction. _Almost_ all of `overflow`-consuming code is matching the Temporal sp...
diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs index 9a627e9938..22f0f3292d 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -647,7 +647,7 @@ impl<R: Rules> DateFi...
5
64
52
0df7de487dcdf6a5d3c479f11b03a3662d48981e
RS
2026-03-19T22:08:43
Fix UB: validate replacement byte in TinyAsciiStr lossy constructors (#7783) ``` from_utf8_lossy and from_utf16_lossy accept a `replacement: u8` that is used to substitute invalid code units. This byte was not validated to be ASCII, so passing >= 0x80 would create an invalid AsciiByte enum discriminant (UB) and then f...
diff --git a/utils/tinystr/src/ascii.rs b/utils/tinystr/src/ascii.rs index f7f1283db5..8c25f2e101 100644 --- a/utils/tinystr/src/ascii.rs +++ b/utils/tinystr/src/ascii.rs @@ -50,7 +50,15 @@ impl<const N: usize> TinyAsciiStr<N> { /// will be replaced with the replacement byte. /// /// The input slice will...
1
38
0
095a13ee0a4d6e0aaec7e50f36a2369b5a82e04e
Shane F. Carr
2026-03-18T23:28:28
Add a test with America/Vancouver (#7793) We already work with both UTC-8 and UTC-7. ## Changelog: N/A
diff --git a/components/datetime/tests/simple_test.rs b/components/datetime/tests/simple_test.rs index ae434c115e..0ee6f3e973 100644 --- a/components/datetime/tests/simple_test.rs +++ b/components/datetime/tests/simple_test.rs @@ -219,3 +219,45 @@ fn test_5387() { assert_writeable_eq!(formatter_h12.format(&datetim...
1
42
0
00bcbe039a6c7f611a1c9d59480330b3122fdc80
RS
2026-03-16T21:02:32
Fix UB: replace unsafe String::from_utf8_unchecked (#7781) with checked conversion A panic in a CustomTransliterator can unwind through Insertable's Drop impl without fully restoring UTF-8 validity, causing into_string() to produce undefined behavior via from_utf8_unchecked. Use checked from_utf8().expect() so this b...
diff --git a/components/experimental/src/transliterate/transliterator/replaceable.rs b/components/experimental/src/transliterate/transliterator/replaceable.rs index fb3b9ecfa6..1e024adc0f 100644 --- a/components/experimental/src/transliterate/transliterator/replaceable.rs +++ b/components/experimental/src/transliterate...
1
26
5
9c0923d07d3af6135ad01e6a2711e8185f6a8c06
RS
2026-03-15T19:37:31
Fix UB: use || instead of && (#7779) in cast_bytes_to_slice alignment/length check The condition guarding `from_raw_parts` joined the alignment check and length check with `&&`, meaning the error was only returned when *both* were wrong. A misaligned-but-correctly-sized buffer passed the check, then `from_raw_parts`...
diff --git a/utils/resb/src/binary/helpers.rs b/utils/resb/src/binary/helpers.rs index faeff59a36..8010be3b78 100644 --- a/utils/resb/src/binary/helpers.rs +++ b/utils/resb/src/binary/helpers.rs @@ -100,7 +100,7 @@ pub fn option_i32_tuple<'de, D: Deserializer<'de>>( /// # Safety /// Alignment and length are checked, ...
1
40
1
09770d68d3a3bab633de3e0764bafac5295cc315
Manish Goregaokar
2026-03-15T15:51:38
Rename LeapBase to Base (#7778) Fixes #7691 ## Changelog: N/A Change to unreleased API --------- Co-authored-by: Shane F. Carr <shane@unicode.org>
diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs index 23776e3a00..9a627e9938 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -793,7 +793,7 @@ impl<R: Rules> Calend...
4
8
9
d77c9298f9e9aa0a4915161f0c3f027f64f6fc97
Shane F. Carr
2026-03-14T15:55:26
Gate the shared (posix) module on the target OS (#7777) ## Changelog: N/A
diff --git a/utils/host_info/src/backends/mod.rs b/utils/host_info/src/backends/mod.rs index 671ef0f56b..caa89ea1ec 100644 --- a/utils/host_info/src/backends/mod.rs +++ b/utils/host_info/src/backends/mod.rs @@ -32,6 +32,13 @@ use icu_locale_core::{ use crate::error::HostInfoError; +#[cfg(any( + target_os = "and...
2
8
4
f9a29c759336a5f6d290e2347789ffd80d4a1998
Hamza Jadid
2026-03-13T21:16:47
Made Location::try_new public (#7775) In order to get observational islamic date for locations other than `MECCA` and `CAIRO` Example: ```rust let new_york = Location::try_new(40.7, -74.0, 10.0, -5.0 / 24.0).unwrap(); let fixed = fixed_from_gregorian(2026, 3, 13); let (year, month, day) = observational_islamic_from_...
diff --git a/utils/calendrical_calculations/src/astronomy.rs b/utils/calendrical_calculations/src/astronomy.rs index b8ac037311..6b28ea47aa 100644 --- a/utils/calendrical_calculations/src/astronomy.rs +++ b/utils/calendrical_calculations/src/astronomy.rs @@ -44,7 +44,8 @@ pub struct Location { pub(crate) longitude...
2
6
5
72444427e36428d9160cf5167e22f886f8251e03
Alan Liu
2026-03-13T18:29:01
Implement stateful surpasses() for until() (#7745) Improve performance of until() by introducing a new, stateful implementation of surpasses() that minimizes recalculation in field iteration loops. ## Changelog icu_calendar: Speed up `until` year and month field handling by 75% on average by optimizing `surpasses` c...
diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs index cee3d958f5..71faf95306 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -403,7 +403,7 @@ impl KoreanTraditiona...
5
273
79
8a1ccbf2c458da201229b7b7a58dc186a38e39f2
Manish Goregaokar
2026-03-13T08:55:27
Add docs on until's non-reversibility (#7774) Improvements suggested in https://github.com/unicode-org/icu4x/issues/3964#issuecomment-4037753666 ## Changelog: N/A docs only
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 708dc84cdc..efebd7314d 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -423,13 +423,19 @@ impl<A: AsCalendar> Date<A> { Ok(self) } - /// Calculating the duration between `other -...
1
26
1
50afcf78ff6cff0339f199cc62c5452eab13ca8f
Robert Bastian
2026-03-13T06:37:18
Simplify `AnyCalendar` implementation (#7772) * Simplifies the `make_any_cal` macro by not special-casing deprecated variants * Removes implementations that are not currently released (`From<$cal> for AnyCalendar`, `TryFrom<AnyCalendar> for $cal`, `PartialEq<$cal> for AnyCalendar`). * Doesn't store the calendar identi...
diff --git a/Cargo.toml b/Cargo.toml index a51d3d5062..83c69d6410 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -407,9 +407,11 @@ rust.unused_qualifications = "warn" # rust.unsafe_op_in_unsafe_fn = "forbid" [workspace.metadata.cargo-semver-checks.lints] -type_method_marked_deprecated.level = "allow" # allow deprecati...
3
132
666
8a5b9bdf36671eb0aba8513270622831732f322e
Manish Goregaokar
2026-03-12T12:08:37
Robert's feedback on month docs (#7767) https://github.com/unicode-org/icu4x/pull/7765#discussion_r2917097813 ## Changelog (N/A) --------- Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
diff --git a/components/calendar/src/types.rs b/components/calendar/src/types.rs index d03a4ee484..3c43418521 100644 --- a/components/calendar/src/types.rs +++ b/components/calendar/src/types.rs @@ -493,6 +493,9 @@ impl fmt::Display for MonthCode { /// (`Month::new(7)`) might be the 7th or 8th month of the year, depen...
1
3
4
afead27e0e45ab8c094ef5ae38219f706e7222ff
Robert Bastian
2026-03-11T23:52:56
Add EastAsianTraditional min_months_from invariant (#7770) ## Changelog: N/A
diff --git a/components/calendar/src/cal/coptic.rs b/components/calendar/src/cal/coptic.rs index b3854eb910..a2ba0bc76d 100644 --- a/components/calendar/src/cal/coptic.rs +++ b/components/calendar/src/cal/coptic.rs @@ -2,7 +2,7 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://gith...
5
59
62
e337ba553a16f1441e2b2ec835415119c3868b85
Manish Goregaokar
2026-03-11T16:16:43
Make min_months invariant no longer a hard invariant for Chinese/Korean (#7753) This is one way of resolving (some of?) @robertbastian's concerns from https://github.com/unicode-org/icu4x/pull/7739 --------- Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
diff --git a/components/calendar/src/cal/coptic.rs b/components/calendar/src/cal/coptic.rs index fe0b32dda4..b3854eb910 100644 --- a/components/calendar/src/cal/coptic.rs +++ b/components/calendar/src/cal/coptic.rs @@ -2,8 +2,7 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://gith...
5
69
25
6f0e4afe153f98677183c766b8568f2bdb7fd70a
Manish Goregaokar
2026-03-11T03:55:28
Note leap month behavior (#7765) Leftover note from Markus' review ## Changelog: N/A
diff --git a/components/calendar/src/types.rs b/components/calendar/src/types.rs index 163a7d3bc5..9b90c65ef2 100644 --- a/components/calendar/src/types.rs +++ b/components/calendar/src/types.rs @@ -475,6 +475,10 @@ impl fmt::Display for MonthCode { /// * `Month::new(7)` = `M07` /// * `Month::leap(2)` = `M02L` /// +...
1
4
0
24bac4e4530de5e68c5b3d9107d42a2bef3f8e9e
Robert Bastian
2026-03-10T21:31:37
Arithmetic API review (#7762) ## Changelog: N/A --------- Co-authored-by: Manish Goregaokar <manishsmail@gmail.com>
diff --git a/components/calendar/src/cal/hebrew.rs b/components/calendar/src/cal/hebrew.rs index d3aa5d9c11..8aece1050c 100644 --- a/components/calendar/src/cal/hebrew.rs +++ b/components/calendar/src/cal/hebrew.rs @@ -45,8 +45,8 @@ use calendrical_calculations::rata_die::RataDie; /// Due to Rosh Hashanah postponement...
6
16
20
f1a18f90227d0818ee48df2e20e4eeeb8525ea1b
Robert Bastian
2026-03-10T16:57:34
Polish compact decimal API (#7759) https://github.com/unicode-org/icu4x/issues/3647 ## Changelog: N/A
diff --git a/components/decimal/Cargo.toml b/components/decimal/Cargo.toml index 1c9496d0fe..1dd026b5bd 100644 --- a/components/decimal/Cargo.toml +++ b/components/decimal/Cargo.toml @@ -51,12 +51,12 @@ criterion = { workspace = true } [features] default = ["compiled_data"] -serde = ["dep:serde", "icu_provider/serd...
7
89
60
f44174f3062eedd1388a2508eac7224b550f5934
Robert Bastian
2026-03-10T16:42:39
Validate `DateInner` compatibility (#7734) The until operation only works if both calendars are the same. This is not just a concern for `AnyCalendar`, any calendar can be parameterised, and some of our calendars actually are (~although none in a way that affects the until method~). Given that `Calendar::DifferenceErr...
diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs index 7af218f604..9cb998e2b8 100644 --- a/components/calendar/src/any_calendar.rs +++ b/components/calendar/src/any_calendar.rs @@ -34,7 +34,6 @@ macro_rules! make_any_calendar { ) => { $(#[$any_calendar_meta])*...
18
225
65
834eac92514a3f7a597dbc328e41d373a47d5e97
Robert Bastian
2026-03-10T16:21:34
`MonthInfo::to_input` (#7756) Fixes #7693 ## Changelog: TBD
diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs index 9e70e54ed4..7af218f604 100644 --- a/components/calendar/src/any_calendar.rs +++ b/components/calendar/src/any_calendar.rs @@ -1406,7 +1406,7 @@ mod tests { assert_eq!( (month, day), - ...
9
25
25
eafcf841bc266d86fc6de009ab864fc00bc3ff2a
Manish Goregaokar
2026-03-10T07:15:06
Replace ByteStr with SliceWithIndices and SerdeByteStr (#7748) Fixes https://github.com/unicode-org/icu4x/issues/7725 This was primarily agent-driven. ByteStr is used in `const` code to abstract over `&[(T, usize)]` where `T` can be `&str` or `&[u8]`. `SliceWithIndices` is the same concept represented as an enum. Th...
diff --git a/utils/zerotrie/src/builder/bytestr.rs b/utils/zerotrie/src/builder/bytestr.rs deleted file mode 100644 index 2bd25a8b61..0000000000 --- a/utils/zerotrie/src/builder/bytestr.rs +++ /dev/null @@ -1,132 +0,0 @@ -// This file is part of ICU4X. For terms of use, please see the file -// called LICENSE at the top...
9
285
288
ece1a803e4ea6927cfa2e8212d6ed642c4660ba6
Manish Goregaokar
2026-03-10T06:28:21
Move try_added_with_options over to taking by-self again (#7735) https://github.com/unicode-org/icu4x/issues/3964 I am convinced that we should take by `self` here, the implicit clone is the worst of all the options. We should consider making AnyCalendar Copy.
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index e36dfefa06..83c30080ee 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -386,18 +386,12 @@ impl<A: AsCalendar> Date<A> { #[cfg(feature = "unstable")] #[inline] pub fn try_added_with_o...
2
10
11
392546a283fd5eb47026282f5054e7410bbcb6cf
Manish Goregaokar
2026-03-09T21:10:31
More documentation for min_months_from_inner (#7746) Improving docs from https://github.com/unicode-org/icu4x/pull/7739 --------- 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 080e1b77e5..cc09f06910 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -589,8 +589,7 @@ impl<R: Rules> DateFi...
3
30
4
baeabfd6fe6e77727ec0425ac34088338556647a
Ben Beasley
2026-03-09T12:18:54
In component crates, limit use of the icu crate to doctests (#7750) As maintainer of most of the ICU4X stack in Fedora, this practice makes it easier for me to run as many tests as possible without downstream patching, and to avoid dependency cycles that interfere with bootstrapping. This is a follow-up to https://git...
diff --git a/components/collections/src/iterator_utils.rs b/components/collections/src/iterator_utils.rs index 0701f32ffd..913e3535ee 100644 --- a/components/collections/src/iterator_utils.rs +++ b/components/collections/src/iterator_utils.rs @@ -60,10 +60,10 @@ where #[cfg(test)] mod tests { + use crate::codepo...
10
51
51
162038542ce8664676a732df578ea728d0e29482
Robert Bastian
2026-03-06T16:13:37
Remove `YearInfo: PartialEq` bound (#7743) There's code that compares whole `YearInfo`s when it should be comparing extended years.
diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs index d1b5a032a0..f35a771446 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -841,7 +841,7 @@ impl<A: AsCalendar<Ca...
4
11
9
575aa0a494f1ab1624a8617772539f47442828fd
Ben Beasley
2026-03-06T12:16:53
In icu_time, limit use of the icu crate to doctests (#7742) This is a really minor tweak, but one that’s useful to me as downstream maintainer of most of the packaged ICU4X crates in Fedora. We don’t have the *entire* ICU4X stack packaged, so we don’t have a package for the top-level `icu` meta-crate. Even if we did,...
diff --git a/components/time/src/zone/windows.rs b/components/time/src/zone/windows.rs index d0795aa728..fca38d1860 100644 --- a/components/time/src/zone/windows.rs +++ b/components/time/src/zone/windows.rs @@ -155,7 +155,7 @@ impl WindowsParserBorrowed<'_> { #[cfg(test)] mod tests { use super::*; - use icu::...
1
1
1
ec546125de90afa041f958f531b86a767d735566
Robert Bastian
2026-03-03T18:03:58
Add `time` integration (#7711) Similar to https://github.com/unicode-org/icu4x/pull/7617. `time` is actually the largest of the three popular Rust datetime crates, having more crates.io downloads (total and recent) than either `jiff` or `chrono`.
diff --git a/Cargo.lock b/Cargo.lock index 192b9d35a6..3e3e2bc43b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1414,6 +1414,7 @@ dependencies = [ "serde", "serde_json", "simple_logger", + "time", "tinystr", "ureq", "zerovec", @@ -1571,6 +1572,7 @@ dependencies = [ "serde", "serde_json", "smallvec", + ...
16
1,019
40
0b926a3a2d452170de0799315e6c0db5c11be51a
Shane F. Carr
2026-02-27T23:43:13
Fix some clippy warnings that only occur on specific features (#7724)
diff --git a/components/locale_core/src/extensions/mod.rs b/components/locale_core/src/extensions/mod.rs index 61c8c439de..72ae65d44e 100644 --- a/components/locale_core/src/extensions/mod.rs +++ b/components/locale_core/src/extensions/mod.rs @@ -195,6 +195,7 @@ impl Extensions { } #[expect(clippy::type_com...
2
2
1
9417a8907f0eb7c190d45ac29001836d2e5c673f
Shane F. Carr
2026-02-27T23:39:26
Add latest-tag value for icu4x-datagen tag arguments (#7599) #7510
diff --git a/provider/icu4x-datagen/src/main.rs b/provider/icu4x-datagen/src/main.rs index 79f3702fb6..11ab6d9003 100644 --- a/provider/icu4x-datagen/src/main.rs +++ b/provider/icu4x-datagen/src/main.rs @@ -173,7 +173,9 @@ struct Cli { icuexport_root: Option<PathBuf>, #[arg(long, value_name = "TAG", default...
1
5
1
befdfc556bed917370c3a8f689da71359d9b82d8
Robert Bastian
2026-02-27T17:08:19
Ignore `RUSTDOCFLAGS` in `diplomat-coverage` (#7721) `diplomat-coverage` fails if it's run in the same cargo-make invocation as `ci-job-doc`, because the latter sets `-D warnings` and cargo-make jobs are not hermetic.
diff --git a/tools/make/diplomat-coverage/src/main.rs b/tools/make/diplomat-coverage/src/main.rs index 4d1b199b03..1dcb679198 100644 --- a/tools/make/diplomat-coverage/src/main.rs +++ b/tools/make/diplomat-coverage/src/main.rs @@ -116,6 +116,7 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>...
1
1
0
b27aa37ba5ba4ba1e0f9eaf67c581293c0c2cdb7
Shane F. Carr
2026-02-27T11:54:29
Add datetime formatting impls on Weekday with test (#7719) See #7710
diff --git a/components/datetime/src/fieldsets.rs b/components/datetime/src/fieldsets.rs index 806c83837f..32a52a32bb 100644 --- a/components/datetime/src/fieldsets.rs +++ b/components/datetime/src/fieldsets.rs @@ -1022,6 +1022,26 @@ impl_date_marker!( ); impl_date_marker!( + /// Format a weekday using [`Weekday...
4
75
0
977570379b79085130062d683c2433650d860b58
Manish Goregaokar
2026-02-27T08:30:04
Remove opaque_mut from segmenter APIs (#7716) Forgot that https://github.com/rust-diplomat/diplomat/pull/1065 had landed, should have done this in https://github.com/unicode-org/icu4x/pull/7715.
diff --git a/ffi/capi/src/segmenter_line.rs b/ffi/capi/src/segmenter_line.rs index c94ef30185..e72423b4be 100644 --- a/ffi/capi/src/segmenter_line.rs +++ b/ffi/capi/src/segmenter_line.rs @@ -16,7 +16,7 @@ pub mod ffi { #[cfg(any(feature = "compiled_data", feature = "buffer_provider"))] use icu_segmenter::opti...
2
2
2
5edd7b22dc41e4acf910f6e0f18f6cd2c58616b5
Manish Goregaokar
2026-02-26T22:13:32
Take self by ref in try_added_with_options (#7714) See discussion in https://github.com/unicode-org/icu4x/issues/3964#issuecomment-3963697368
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 07a2d1cb9f..e36dfefa06 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -371,6 +371,10 @@ impl<A: AsCalendar> Date<A> { /// This API will not construct dates outside of the fundamental range de...
2
15
5
6bd65a1e59a672393c539cb6920358616a6e37d6
Manish Goregaokar
2026-02-25T05:58:49
Improve efficiency of outer until() algorithm by starting off years/months calculations at a minimum bound (#7682) Progress on https://github.com/unicode-org/icu4x/issues/7077 `until` is slow for two reasons: - It builds up years/months one by one, which is `O(n * O(surpasses))` - `surpasses` calls `new_balanced` a...
diff --git a/components/calendar/Cargo.toml b/components/calendar/Cargo.toml index f5a8a484a4..c35011b509 100644 --- a/components/calendar/Cargo.toml +++ b/components/calendar/Cargo.toml @@ -68,6 +68,10 @@ chrono_0_4 = ["dep:chrono"] alloc = ["icu_locale_core/alloc", "tinystr/alloc", "serde?/alloc"] +[[bench]] +na...
5
195
64
5c3ad5605e8dabbfe1333e590792ce6ffbc492b3
Manish Goregaokar
2026-02-25T02:19:04
Add more docs on Date's range errors (#7689) Fixes https://github.com/unicode-org/icu4x/issues/7076 (I think everything else there is resolved) Decided to add a nice section on `Date` that the other docs can all point to. I chose to publicize our range but clearly document it as subject to change within limits. We _...
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 38e564485b..07a2d1cb9f 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -103,6 +103,25 @@ impl<C> Deref for Ref<'_, C> { /// 3. From a RFC 9557 string via [`Self::try_from_str()`] /// 4. From a [`...
2
38
5
f6a02936fa058c743d7e0bdca177ccb7e7a57dae
Robert Bastian
2026-02-24T18:31:33
Reduce year range checks (#7688) Fixes #7686
diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs index 430f519ce6..d3c7a41462 100644 --- a/components/calendar/src/calendar_arithmetic.rs +++ b/components/calendar/src/calendar_arithmetic.rs @@ -7,7 +7,7 @@ use calendrical_calculations::rata_die::RataDie; use...
4
26
75
500a9e43d4231567e0197b6091ca0ac6db3ffeba
Manish Goregaokar
2026-02-24T17:35:04
Undo my change to lunisolar error matching (#7687) In https://github.com/unicode-org/icu4x/pull/7676 I moved lunisolar errors over to a `?` operator. Robert disagrees: https://github.com/unicode-org/icu4x/pull/7676#discussion_r2841888168 I landed that PR in the interest of unblocking future work, but I don't mind un...
diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs index 0afaeddbd1..430f519ce6 100644 --- a/components/calendar/src/calendar_arithmetic.rs +++ b/components/calendar/src/calendar_arithmetic.rs @@ -363,7 +363,11 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> { ...
2
5
11
f9226ee7654b82ce16a9ed9e07b0fa7b79ead914
Robert Bastian
2026-02-24T13:48:13
Add `chrono` and `jiff` integrations (#7617) This adds `chrono` and `jiff` features to `icu_datetime`, which allows using those crate's types as inputs to `DateTimeFormatter`. It also adds `chrono` and `jiff` features to `icu_time` and `icu_calendar` that allow converting to `icu` types.
diff --git a/Cargo.lock b/Cargo.lock index 961590d170..dc392246fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1326,6 +1326,7 @@ dependencies = [ "icu_datetime", "icu_decimal", "icu_experimental", + "icu_host_info", "icu_list", "icu_locale", "icu_normalizer", @@ -1397,6 +1398,7 @@ name = "icu_calendar" ver...
17
1,063
82
a255fddfa68f7e876532eac3d3213c93f4c1cc26
Robert Bastian
2026-02-23T18:44:57
Enable clippy lints for transmutes (#7673) And clean up a lot of transmutes.
diff --git a/Cargo.toml b/Cargo.toml index 89e6657ca5..17e0f1151d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -342,6 +342,7 @@ debug = true clippy.alloc-instead-of-core = "warn" clippy.branches-sharing-code = "warn" clippy.collection_is_never_read = "warn" +clippy.crosspointer_transmute = "warn" clippy.dbg_macro = ...
30
131
192
8b31bf168b494d1c4f2e65b65a8c10ba5e4aa9d0
Robert Bastian
2026-02-23T17:58:25
Update APIs used in time zone docs (#7680) Instead of constructing `TimeZoneInfo` from BCP-47 subtags and offset strings, we should make our examples construct them from IANA IDs and offset seconds. Those are the actual pieces that clients will have from their TZ arithmetic code.
diff --git a/components/datetime/src/fieldsets.rs b/components/datetime/src/fieldsets.rs index 3ae15a30ba..806c83837f 100644 --- a/components/datetime/src/fieldsets.rs +++ b/components/datetime/src/fieldsets.rs @@ -935,7 +935,7 @@ macro_rules! impl_zone_marker { /// use icu::datetime::input::{Date, DateTime, T...
5
64
64
d310df8b3fb1cbfc551682ccf80f378ed152da8e
Milad Fa
2026-02-20T18:21:43
Fix resb on big endian platforms (#7658)
diff --git a/utils/resb/src/binary.rs b/utils/resb/src/binary.rs index 95af62bb67..377c44717f 100644 --- a/utils/resb/src/binary.rs +++ b/utils/resb/src/binary.rs @@ -468,7 +468,7 @@ fn read_u16(input: &[u8]) -> Result<(u16, &[u8]), BinaryDeserializerError> { // only fail if the slice is the wrong size. #[exp...
3
11
9
c1134b49d20a893bbfd90a66fb7604652e08014a
Shane F. Carr
2026-02-19T17:18:03
Add more constructors to UnvalidatedTinyAsciiStr (#7664) Split from #7663
diff --git a/utils/tinystr/src/ascii.rs b/utils/tinystr/src/ascii.rs index 6a480afe11..72ef77091b 100644 --- a/utils/tinystr/src/ascii.rs +++ b/utils/tinystr/src/ascii.rs @@ -19,6 +19,11 @@ pub struct TinyAsciiStr<const N: usize> { } impl<const N: usize> TinyAsciiStr<N> { + /// The empty string. + pub const E...
2
21
1
dfd36eca6d6c18a5472b62b5a4b050e76661b35d
Shane F. Carr
2026-02-19T10:37:42
docs: Minor improvements to Date docs (#7668)
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 85b0be50dd..d260cc75e3 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -96,12 +96,14 @@ impl<C> Deref for Ref<'_, C> { /// /// **The primary definition of this type is in the [`icu_calendar`](htt...
1
7
5
5c0b4652aeb78247dd1e38368f7eee85fbdb39c3
Pratush Shyam Gupt
2026-02-16T15:23:30
Clarify docs on `extensions::Private` (#7612) Fixes #4149 Summary :- - Added clear documentation stating the caller must provide sorted subtags, deduplicated subtags, canonical form ( lowercase ) subtags - Updated all examples to show properly sorted input which is "bar" before "foo" --------- Co-authored-by: R...
diff --git a/components/locale_core/src/extensions/private/mod.rs b/components/locale_core/src/extensions/private/mod.rs index 458259c26e..12e0f4e240 100644 --- a/components/locale_core/src/extensions/private/mod.rs +++ b/components/locale_core/src/extensions/private/mod.rs @@ -112,7 +112,7 @@ impl Private { E...
1
1
1
3221eec5ddd3e7582c671191c592c4477b51e606
rusat
2026-02-14T00:56:45
Added tlh-001 to test-options (#7643) Fixes #6541 This follows up on the previous closed PR by moving the `tlh-001` coverage into `provider/export/tests/test-options.rs` and updating only the expected test output. No fallback logic changes. So, this just aligns the tests with current exporter behavior.
diff --git a/provider/export/tests/test-options.rs b/provider/export/tests/test-options.rs index 5193366b29..b553c88ba1 100644 --- a/provider/export/tests/test-options.rs +++ b/provider/export/tests/test-options.rs @@ -283,7 +283,7 @@ fn all_runtime_retain_base() { #[test] fn explicit_preferred() { - const SELEC...
1
20
10
acab827895b1dcd592aa6627584b8175da68ca2c
Manish Goregaokar
2026-02-14T00:37:31
Correct Hijri reference years (#7641) The existing code incorrectly produced past years for nonexistant Hijri MonthDays, which ends up in stuff constraining to the wrong month. The reference_year function must be able to handle any number thrown at it: if you throw `day = 35` , it should resolve to the reference year...
diff --git a/components/calendar/src/cal/hijri.rs b/components/calendar/src/cal/hijri.rs index 2685c3e4d7..8b497b26be 100644 --- a/components/calendar/src/cal/hijri.rs +++ b/components/calendar/src/cal/hijri.rs @@ -246,7 +246,7 @@ impl Rules for UmmAlQura { (9, _) => 1392, (10, 30..) => 1390, ...
2
87
46
5a122299184d2465f0c34f664e0e2bfd197c68c2
Pratush Shyam Gupt
2026-02-13T08:16:40
added guard for implicit features (#7608) Fixes #3004 Summary :- the function `check_implicit_features` collect the paths of all `cargo.toml` files, which packages are in workspace and which dependencies are optional using `cargo metadata`. Then using the `toml` crate it parses the `cargo.toml` files and checks what...
diff --git a/Cargo.lock b/Cargo.lock index 772caa944a..7b7f492bc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -695,6 +695,11 @@ dependencies = [ [[package]] name = "depcheck" version = "0.0.0" +dependencies = [ + "serde", + "serde_json", + "toml", +] [[package]] name = "deranged" diff --git a/components/experime...
4
134
2
fff0c882e3aebb2f450a10a06bab3e126f7ff070
Robert Bastian
2026-02-12T22:08:17
Reduce checks in `ZonedDateTime` parsing (#7631) Currently the date and time are reparsed to populate the time zone timestamp. Also fixes the `PartialOrd` impl for `ZonedDateTime<Iso, UtcOffset>`, which previously only used millisecond accuracy, whereas `Time` has nanosecond. Also simplifies `ZoneNameTimestamp` cons...
diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs index 3ad61936be..85b0be50dd 100644 --- a/components/calendar/src/date.rs +++ b/components/calendar/src/date.rs @@ -233,6 +233,7 @@ impl<A: AsCalendar> Date<A> { let c1 = self.calendar.as_calendar(); let c2 = calendar.as_ca...
6
167
122
c2822fe8956b47ba0a0c7a1d6c3f590c958c2c1c
Robert Bastian
2026-02-12T17:04:26
Fix host_info clippy on mac (#7644)
diff --git a/utils/host_info/src/backends/macos.rs b/utils/host_info/src/backends/macos.rs index a30905abd3..6a296d0f27 100644 --- a/utils/host_info/src/backends/macos.rs +++ b/utils/host_info/src/backends/macos.rs @@ -259,7 +259,7 @@ impl RawHostInfoBackend for MacOSHostInfoBackend { None ...
1
2
3
68de22b912030338043bee6a84f7364c557177d0
Mohammed Afreed baig
2026-02-12T12:44:07
Implement generalized LDML decimal pattern parsing (#7508) #567 This PR adds a generalized decimal pattern parser to icu_decimal in line with Unicode LDML number format specifications. It introduces DecimalPattern and DecimalPatternItem abstractions with support for standard LDML pattern symbols, quoted literals, an...
diff --git a/provider/source/src/decimal/decimal_pattern.rs b/provider/source/src/decimal/decimal_pattern.rs index 7369ae2d77..8962c62155 100644 --- a/provider/source/src/decimal/decimal_pattern.rs +++ b/provider/source/src/decimal/decimal_pattern.rs @@ -16,8 +16,98 @@ use std::str::FromStr; pub(crate) enum Error { ...
1
362
32
10ccfd6bcc39af8aaa43743b9413902fe799cd44
Manish Goregaokar
2026-02-12T00:33:41
Implement new specced reference year behavior (#7640) Temporal specced reference years in more detail, using our code and feedback. Temporal now rejects MonthDay combinations that produce reference years in the far past, though as the "specced valid" range expands Temporal will likely Constraining these dates turns l...
diff --git a/components/calendar/src/cal/east_asian_traditional.rs b/components/calendar/src/cal/east_asian_traditional.rs index 788cbad897..e1791f7543 100644 --- a/components/calendar/src/cal/east_asian_traditional.rs +++ b/components/calendar/src/cal/east_asian_traditional.rs @@ -26,6 +26,77 @@ mod qing_data; #[path...
5
198
165
49216ab4696ce7e4de1ac42f4cd2c417cee82ee0
Robert Bastian
2026-02-11T21:00:12
Move `host_info` back to the workspace (#7638) The crate doesn't even currently compile because there's no CI for it. I'd also like to use it in examples within the workspace, so we need to make it work on CI. I think this fixes the problem that made us remove it from the workspace, by adding a build script that dete...
diff --git a/Cargo.lock b/Cargo.lock index 9bfc23645f..772caa944a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -394,6 +394,16 @@ dependencies = [ "shlex", ] +[[package]] +name = "cfg-expr" +version = "0.20.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78cef5b5a1a6827c7322ae2a6363...
7
412
1,038
71180bd56d0d1a47fa33c58542269ec80040aee7
Robert Bastian
2026-02-11T16:27:37
Update date range comments (#7634) #7076
diff --git a/components/calendar/src/cal/buddhist.rs b/components/calendar/src/cal/buddhist.rs index 4446d31acd..cb87bf8e35 100644 --- a/components/calendar/src/cal/buddhist.rs +++ b/components/calendar/src/cal/buddhist.rs @@ -72,7 +72,7 @@ impl Date<Buddhist> { /// Construct a new Buddhist [`Date`]. /// ...
16
27
22