Skip to content

Commit 51d1c4c

Browse files
committed
Merge branch 'main' into eras
2 parents 816449e + 73ad49d commit 51d1c4c

File tree

150 files changed

+2478
-1654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+2478
-1654
lines changed

.github/workflows/artifacts-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ jobs:
267267
run: |
268268
npm -C ffi/npm ci
269269
npm -C tutorials/web-demo ci
270-
env:
271-
PINNED_CI_NIGHTLY: nightly-2024-07-23
272270
273271
- name: Run Webpack
274272
run: npm -C tutorials/web-demo run build

.github/workflows/build-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ jobs:
280280
- name: Show the selected Rust toolchain
281281
run: rustup show
282282

283+
# Job-specific dependencies
284+
# TODO: Remove on 2025-05-05, when clang-19 is in ubuntu-latest (https://github.com/actions/runner-images/issues/11895)
285+
- name: Install LLD and Clang
286+
run: sudo apt-get install lld-19 clang-19
287+
283288
# Actual job
284289
- name: Run `cargo make ci-job-test-c`
285290
run: cargo make ci-job-test-c
@@ -310,6 +315,11 @@ jobs:
310315
- name: Show the selected Rust toolchain
311316
run: rustup show
312317

318+
# Job-specific dependencies
319+
# TODO: Remove on 2025-05-05, when clang-19 is in ubuntu-latest (https://github.com/actions/runner-images/issues/11895)
320+
- name: Install LLD
321+
run: sudo apt-get install lld-19
322+
313323
# Actual job
314324
- name: Run `cargo make ci-job-test-js`
315325
run: cargo make ci-job-test-js

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
3131
with:
32-
toolchain: nightly-2024-07-23
32+
toolchain: nightly-2024-09-01
3333
override: true
3434

3535
- run: cargo test --all-features --no-fail-fast

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Some major changes worth highlighting:
1717
- Rename `Islamic` calendars to `Hijri` (unicode-org#6214)
1818
- Collapse `IslamicCivil` into `IslamicTabular` (unicode-org#6384)
1919
- Rename `IslamicObservational` to `IslamicSimulated`
20+
- Rename `wrap_calendar_in_*` APIs to `as_borrowed`, `into_ref_counted`, `into_atomic_ref_counted` (unicode-org#6392)
2021
- `icu_collections`
2122
- Remove some panics from `CodePointTrie`, which should no longer pull in panic machinery even with arithmetic panics enabled for lookup (unicode-org#6204)
2223
- Data model and providers

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Our wider testsuite is organized as `ci-job-foo` make tasks corresponding to eac
112112
<br/>
113113

114114
- `ci-job-test-c`: Runs all C/C++ FFI tests; mostly important if you're changing the FFI interface.
115-
+ Requires `clang-18` and `lld-18` with the `gold` plugin (APT packages `llvm-18` and `lld-18`).
115+
+ Requires `clang-19` and `lld-19` with the `gold` plugin (APT packages `llvm-19` and `lld-19`).
116116
- `ci-job-test-js`: Runs all JS/WASM/Node FFI tests; mostly important if you're changing the FFI interface.
117117
+ Requires Node.js version 16.18.0. This may not the one offered by the package manager; get it from the NodeJS website or `nvm`.
118118
- `ci-job-nostd`: Builds ICU4X for a `#[no_std]` target to verify that it's compatible.

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ icu_benchmark_macros = { path = "tools/benchmark/macros" }
214214

215215
# The version here can either be a `version = ".."` spec or `git = "https://github.com/rust-diplomat/diplomat", rev = ".."`
216216
# Diplomat must be published preceding a new ICU4X release but may use git versions in between
217-
diplomat = { git = "https://github.com/rust-diplomat/diplomat", rev = "76b030df6326070c314a5d6cacedf3357a5ed590", default-features = false }
218-
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat", rev = "76b030df6326070c314a5d6cacedf3357a5ed590", default-features = false }
219-
diplomat_core = { git = "https://github.com/rust-diplomat/diplomat", rev = "76b030df6326070c314a5d6cacedf3357a5ed590", default-features = false }
220-
diplomat-tool = { git = "https://github.com/rust-diplomat/diplomat", rev = "76b030df6326070c314a5d6cacedf3357a5ed590", default-features = false }
217+
diplomat = { git = "https://github.com/rust-diplomat/diplomat", rev = "f67862a22def6cb7954aa51e102630e019c99165", default-features = false }
218+
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat", rev = "f67862a22def6cb7954aa51e102630e019c99165", default-features = false }
219+
diplomat_core = { git = "https://github.com/rust-diplomat/diplomat", rev = "f67862a22def6cb7954aa51e102630e019c99165", default-features = false }
220+
diplomat-tool = { git = "https://github.com/rust-diplomat/diplomat", rev = "f67862a22def6cb7954aa51e102630e019c99165", default-features = false }
221221

222222
# EXTERNAL DEPENDENCIES
223223
#
@@ -271,7 +271,7 @@ serde-aux = { version = "4.0.0", default-features = false }
271271

272272
## External Deps Group 3: Dev and Datagen deps. Include default features.
273273
arraystring = "0.3.0"
274-
askama = "0.12"
274+
askama = "0.13"
275275
atoi = "2.0.0"
276276
bincode = "1.3.1" # Can be updated to 2.0 after MSRV 1.85
277277
clap = "4.2.0"

Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ default_to_workspace = false
1919
# The toolchain that CI is being run in. Allows tests to change under beta/nightly.
2020
CI_TOOLCHAIN = { value = "pinned-stable", condition = { env_not_set = ["CI_TOOLCHAIN"]}}
2121
# The pinned nightly toolchain for jobs that require a nightly compiler.
22-
PINNED_CI_NIGHTLY = { value = "nightly-2024-07-23", condition = { env_not_set = ["PINNED_CI_NIGHTLY"] } }
22+
PINNED_CI_NIGHTLY = { value = "nightly-2025-02-17", condition = { env_not_set = ["PINNED_CI_NIGHTLY"] } }
2323

2424
[tasks.quick]
2525
description = "Run quick version of all lints and builds (useful before pushing to GitHub)"

components/calendar/benches/convert.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ fn convert_benches(c: &mut Criterion) {
7878
bench_calendar(
7979
&mut group,
8080
"calendar/islamic/civil",
81-
icu::calendar::cal::HijriTabular::new_civil_epoch(),
81+
icu::calendar::cal::HijriTabular::new(
82+
icu::calendar::cal::HijriTabularEpoch::Friday,
83+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
84+
),
8285
);
8386

8487
bench_calendar(
@@ -90,7 +93,10 @@ fn convert_benches(c: &mut Criterion) {
9093
bench_calendar(
9194
&mut group,
9295
"calendar/islamic/tabular",
93-
icu::calendar::cal::HijriTabular::new_astronomical_epoch(),
96+
icu::calendar::cal::HijriTabular::new(
97+
icu::calendar::cal::HijriTabularEpoch::Thursday,
98+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
99+
),
94100
);
95101

96102
group.finish();

components/calendar/benches/date.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,19 @@ fn date_benches(c: &mut Criterion) {
197197
&mut group,
198198
"calendar/islamic/civil",
199199
&fxs,
200-
icu::calendar::cal::HijriTabular::new_civil_epoch(),
200+
icu::calendar::cal::HijriTabular::new(
201+
icu::calendar::cal::HijriTabularEpoch::Friday,
202+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
203+
),
201204
|y, m, d| {
202205
Date::try_new_hijri_tabular_with_calendar(
203206
y,
204207
m,
205208
d,
206-
icu::calendar::cal::HijriTabular::new_civil_epoch(),
209+
icu::calendar::cal::HijriTabular::new(
210+
icu::calendar::cal::HijriTabularEpoch::Friday,
211+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
212+
),
207213
)
208214
.unwrap()
209215
},
@@ -213,13 +219,19 @@ fn date_benches(c: &mut Criterion) {
213219
&mut group,
214220
"calendar/islamic/tabular",
215221
&fxs,
216-
icu::calendar::cal::HijriTabular::new_astronomical_epoch(),
222+
icu::calendar::cal::HijriTabular::new(
223+
icu::calendar::cal::HijriTabularEpoch::Thursday,
224+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
225+
),
217226
|y, m, d| {
218227
Date::try_new_hijri_tabular_with_calendar(
219228
y,
220229
m,
221230
d,
222-
icu::calendar::cal::HijriTabular::new_astronomical_epoch(),
231+
icu::calendar::cal::HijriTabular::new(
232+
icu::calendar::cal::HijriTabularEpoch::Thursday,
233+
icu::calendar::cal::HijriTabularLeapYears::TypeII,
234+
),
223235
)
224236
.unwrap()
225237
},

0 commit comments

Comments
 (0)