Skip to content

Commit 14da652

Browse files
committed
v0.3.46 release
1 parent f0798a4 commit 14da652

File tree

6 files changed

+42
-8
lines changed

6 files changed

+42
-8
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,40 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
66

77
---
88

9+
## 0.3.46 [2026-01-23]
10+
11+
### Added
12+
13+
- All possible panics are now documented for the relevant methods.
14+
- The need to use `#[serde(default)]` when using custom `serde` formats is documented. This applies
15+
only when deserializing an `Option<T>`.
16+
- `Duration::nanoseconds_i128` has been made public, mirroring
17+
`std::time::Duration::from_nanos_u128`.
18+
- Various methods for truncating components have been added, avoiding the need to call the fallible
19+
`replace` methods multiple times.
20+
21+
For `PrimitiveDateTime`, `UtcDateTime`, and `OffsetDateTime`:
22+
- `truncate_to_day`
23+
24+
For `Time`, `PrimitiveDateTime`, `UtcDateTime`, and `OffsetDateTime`:
25+
- `truncate_to_hour`
26+
- `truncate_to_minute`
27+
- `truncate_to_second`
28+
- `truncate_to_millisecond`
29+
- `truncate_to_microsecond`
30+
31+
### Changed
32+
33+
- The minimum supported Rust version is now 1.88.0.
34+
- Significant performance gains in numerous locations. No public APIs were changed or removed as
35+
part of this.
36+
- The size of `error::ComponentRange`, along with types that contain it, has been significantly
37+
reduced.
38+
39+
### Fixed
40+
41+
- The `PartialOrd` and `Ord` implementations of `UtcOffset` now return the expected result.
42+
943
## 0.3.45 [2026-01-13]
1044

1145
### Added

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ keywords = ["date", "time", "calendar", "duration"]
1313
license = "MIT OR Apache-2.0"
1414

1515
[workspace.dependencies]
16-
time-core = { path = "time-core", version = "=0.1.7" }
17-
time-macros = { path = "time-macros", version = "=0.2.25" }
16+
time-core = { path = "time-core", version = "=0.1.8" }
17+
time-macros = { path = "time-macros", version = "=0.2.26" }
1818

1919
criterion = { version = "0.8.1", default-features = false }
2020
deranged = { version = "0.5.2", features = ["powerfmt"] }

time-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lints.workspace = true
22

33
[package]
44
name = "time-core"
5-
version = "0.1.7"
5+
version = "0.1.8"
66
categories = ["date-and-time"]
77
description = "This crate is an implementation detail and should not be relied upon directly."
88

time-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lints.workspace = true
22

33
[package]
44
name = "time-macros"
5-
version = "0.2.25"
5+
version = "0.2.26"
66
categories = ["date-and-time"]
77
description = """
88
Procedural macros for the time crate.

time/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lints.workspace = true
22

33
[package]
44
name = "time"
5-
version = "0.3.45"
5+
version = "0.3.46"
66
categories = [
77
"date-and-time",
88
"no-std",

0 commit comments

Comments
 (0)