feat: upgrade temporal_rs to 0.2.0
This commit is contained in:
parent
ff3260ab6d
commit
624c894e5c
3 changed files with 15 additions and 13 deletions
|
|
@ -400,8 +400,10 @@ pub fn run(allocator: std.mem.Allocator, io_optional: ?std.Io) !void {
|
||||||
});
|
});
|
||||||
|
|
||||||
// PlainYearMonth: add, subtract, with, equals, since, until, withCalendar
|
// PlainYearMonth: add, subtract, with, equals, since, until, withCalendar
|
||||||
const ym_added = try ym.add(dur);
|
const dur_ym = try Temporal.Duration.from("P1M");
|
||||||
const ym_sub = try ym.subtract(dur);
|
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_with = try ym.with(.{ .year = 2025 });
|
||||||
const ym_eq = ym.equals(ym);
|
const ym_eq = ym.equals(ym);
|
||||||
const ym_since = try ym.since(ym, Temporal.PlainYearMonth.DifferenceSettings{});
|
const ym_since = try ym.since(ym, Temporal.PlainYearMonth.DifferenceSettings{});
|
||||||
|
|
|
||||||
16
pkg/temporal/Cargo.lock
generated
16
pkg/temporal/Cargo.lock
generated
|
|
@ -316,17 +316,17 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "temporal_capi"
|
name = "temporal_capi"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
dependencies = [
|
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",
|
"temporal_rs",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "temporal_capi"
|
name = "temporal_capi"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a151e402c2bdb6a3a2a2f3f225eddaead2e7ce7dd5d3fa2090deb11b17aa4ed8"
|
checksum = "64a85237ba1a9512ac9217a71fdbeed3295bb97e72aa0e3cd005d42dc92eeb55"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"diplomat",
|
"diplomat",
|
||||||
"diplomat-runtime",
|
"diplomat-runtime",
|
||||||
|
|
@ -340,9 +340,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "temporal_rs"
|
name = "temporal_rs"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "88afde3bd75d2fc68d77a914bece426aa08aa7649ffd0cdd4a11c3d4d33474d1"
|
checksum = "654b89203889c8b90b96d275d1296c56df5f0ffee127213730c1b9895b69b33e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core_maths",
|
"core_maths",
|
||||||
"icu_calendar",
|
"icu_calendar",
|
||||||
|
|
@ -356,9 +356,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "timezone_provider"
|
name = "timezone_provider"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "df9ba0000e9e73862f3e7ca1ff159e2ddf915c9d8bb11e38a7874760f445d993"
|
checksum = "838a6ce9f08d07a637682a7dda441b97dc34e4aaf0dbfd9ca3d7eaf6fe1e8495"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"combine",
|
"combine",
|
||||||
"jiff-tzdb",
|
"jiff-tzdb",
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
[package]
|
[package]
|
||||||
name = "temporal_capi"
|
name = "temporal_capi"
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies.temporal_capi]
|
[dependencies.temporal_capi]
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["compiled_data"]
|
features = ["compiled_data"]
|
||||||
|
|
||||||
[dependencies.temporal_rs]
|
[dependencies.temporal_rs]
|
||||||
version = "*"
|
version = "0.2.0"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["float64_representable_durations"]
|
features = ["float64_representable_durations"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue