From 624c894e5cb530812ae7accca12b60607e5895e4 Mon Sep 17 00:00:00 2001 From: "Nurul Huda (Apon)" Date: Sat, 14 Mar 2026 19:00:35 +0600 Subject: [PATCH] feat: upgrade temporal_rs to 0.2.0 --- example/src/root.zig | 6 ++++-- pkg/temporal/Cargo.lock | 16 ++++++++-------- pkg/temporal/Cargo.toml | 6 +++--- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/example/src/root.zig b/example/src/root.zig index 3217270..bc0384d 100644 --- a/example/src/root.zig +++ b/example/src/root.zig @@ -400,8 +400,10 @@ pub fn run(allocator: std.mem.Allocator, io_optional: ?std.Io) !void { }); // PlainYearMonth: add, subtract, with, equals, since, until, withCalendar - const ym_added = try ym.add(dur); - const ym_sub = try ym.subtract(dur); + const dur_ym = try Temporal.Duration.from("P1M"); + defer dur_ym.deinit(); + const ym_added = try ym.add(dur_ym); + const ym_sub = try ym.subtract(dur_ym); const ym_with = try ym.with(.{ .year = 2025 }); const ym_eq = ym.equals(ym); const ym_since = try ym.since(ym, Temporal.PlainYearMonth.DifferenceSettings{}); diff --git a/pkg/temporal/Cargo.lock b/pkg/temporal/Cargo.lock index 84df04e..92b18bc 100644 --- a/pkg/temporal/Cargo.lock +++ b/pkg/temporal/Cargo.lock @@ -316,17 +316,17 @@ dependencies = [ [[package]] name = "temporal_capi" -version = "0.1.2" +version = "0.2.0" dependencies = [ - "temporal_capi 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "temporal_capi 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "temporal_rs", ] [[package]] name = "temporal_capi" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a151e402c2bdb6a3a2a2f3f225eddaead2e7ce7dd5d3fa2090deb11b17aa4ed8" +checksum = "64a85237ba1a9512ac9217a71fdbeed3295bb97e72aa0e3cd005d42dc92eeb55" dependencies = [ "diplomat", "diplomat-runtime", @@ -340,9 +340,9 @@ dependencies = [ [[package]] name = "temporal_rs" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88afde3bd75d2fc68d77a914bece426aa08aa7649ffd0cdd4a11c3d4d33474d1" +checksum = "654b89203889c8b90b96d275d1296c56df5f0ffee127213730c1b9895b69b33e" dependencies = [ "core_maths", "icu_calendar", @@ -356,9 +356,9 @@ dependencies = [ [[package]] name = "timezone_provider" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df9ba0000e9e73862f3e7ca1ff159e2ddf915c9d8bb11e38a7874760f445d993" +checksum = "838a6ce9f08d07a637682a7dda441b97dc34e4aaf0dbfd9ca3d7eaf6fe1e8495" dependencies = [ "combine", "jiff-tzdb", diff --git a/pkg/temporal/Cargo.toml b/pkg/temporal/Cargo.toml index 0e2f259..4a43b66 100644 --- a/pkg/temporal/Cargo.toml +++ b/pkg/temporal/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "temporal_capi" -version = "0.1.2" +version = "0.2.0" edition = "2024" [dependencies.temporal_capi] -version = "0.1.2" +version = "0.2.0" default-features = false features = ["compiled_data"] [dependencies.temporal_rs] -version = "*" +version = "0.2.0" default-features = false features = ["float64_representable_durations"]