mirror of
https://github.com/servo/servo.git
synced 2025-09-04 20:18:21 +01:00
build(deps): bump time from 0.3.41 to 0.3.42 (#39063)
Bumps [time](https://github.com/time-rs/time) from 0.3.41 to 0.3.42. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/time-rs/time/releases">time's releases</a>.</em></p> <blockquote> <h2>v0.3.42</h2> <p>See the <a href="https://github.com/time-rs/time/blob/main/CHANGELOG.md">changelog</a> for details.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/time-rs/time/blob/main/CHANGELOG.md">time's changelog</a>.</em></p> <blockquote> <h2>0.3.42 [2025-08-31]</h2> <h3>Added</h3> <ul> <li><code>Time::duration_until</code></li> <li><code>Time::duration_since</code></li> <li><code>per_t</code> method for all types in <code>time::convert</code>. This is similar to the existing <code>per</code> method, but can return any of the primitive numeric types that can represent the result. This will cut down on <code>as</code> casts while ensuring correctness. Type inference isn't perfect, so you may need to provide a type annotation in some situations.</li> <li><code>impl PartialOrd for Month</code> and <code>impl Ord for Month</code>; this assumes the months are in the same year</li> <li><code>SystemTimeExt</code> trait, adding methods for checked arithmetic with <code>time::Duration</code> and obtaining the difference between two <code>SystemTime</code>s as a <code>time::Duration</code></li> <li>Permit using <code>UtcDateTime</code> with <code>rand</code> (this was inadvertently omitted previously)</li> <li><code>impl core::error::Error</code> for all error types (now available when the <code>std</code> feature is disabled)</li> <li>MacOS can now obtain the local UTC offset in multi-threaded programs as the system APIs are thread-safe.</li> <li><code>#[track_caller]</code> has been added to all relevant methods.</li> </ul> <h3>Changed</h3> <ul> <li>The minimum supported Rust version is now 1.81.0.</li> <li>The dependency on <code>itoa</code> has been removed, as the standard library now has similar functionality by default.</li> <li>Formatting a component that involves a floating point number is now guaranteed to be deterministic, avoiding any subtle differences between platforms or compiler versions.</li> </ul> <h3>Fixed</h3> <ul> <li>Serializing timestamps with nanosecond precision <em>should</em> always emit the correct value. Previously, it could be off by one nanosecond due to floating point imprecision.</li> <li>A previously unknown bug in <code>OffsetDateTime::to_offset</code> and <code>UtcDateTime::to_offset</code> has been fixed. The bug could result in a value that was invalid. It was unlikely to ever occur in real-world code, as it involved passing a UTC offset that has never been used in any location.</li> </ul> <h3>Miscellaneous</h3> <ul> <li>The amount of code generated by macros has been massively reduced, on the order of 65-70% for typical use cases of <code>format_description!</code>.</li> <li>Significant performance gains for comparisons of <code>Time</code>, <code>PrimitiveDateTime</code>, <code>UtcDateTime</code>, and <code>OffsetDateTime</code>. The first three have gains of approximately 85% (i.e. 6× faster).</li> <li>Nearly all methods are <code>#[inline]</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="ed2852e3b2
"><code>ed2852e</code></a> v0.3.42 release</li> <li><a href="1067543c7f
"><code>1067543</code></a> Fix copied comment</li> <li><a href="f45bff514c
"><code>f45bff5</code></a> Use <code>const</code> block for readability</li> <li><a href="b38c118d3d
"><code>b38c118</code></a> Add <code>#[inline]</code> to most methods</li> <li><a href="f410951557
"><code>f410951</code></a> Add <code>#[track_caller]</code> to numerous methods</li> <li><a href="d30f3d0f12
"><code>d30f3d0</code></a> Optimize <code>Time::sub</code></li> <li><a href="e807ad35ec
"><code>e807ad3</code></a> Add tests, benchmarks</li> <li><a href="3fcb83d65f
"><code>3fcb83d</code></a> Optimize <code>OffsetDateTime</code> comparisons</li> <li><a href="95db5c3613
"><code>95db5c3</code></a> Optimize UTC offset conversions</li> <li><a href="998b26fba5
"><code>998b26f</code></a> Optimize <code>Time::duration_until</code></li> <li>Additional commits viewable in <a href="https://github.com/time-rs/time/compare/v0.3.41...v0.3.42">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
fb107aa8a8
commit
3b2358c2b2
1 changed files with 8 additions and 9 deletions
17
Cargo.lock
generated
17
Cargo.lock
generated
|
@ -1971,9 +1971,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "deranged"
|
||||
version = "0.4.0"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
|
||||
checksum = "75d7cc94194b4dd0fa12845ef8c911101b7f37633cda14997a6e82099aa0b693"
|
||||
dependencies = [
|
||||
"powerfmt",
|
||||
"serde",
|
||||
|
@ -8752,12 +8752,11 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "time"
|
||||
version = "0.3.41"
|
||||
version = "0.3.42"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
|
||||
checksum = "8ca967379f9d8eb8058d86ed467d81d03e81acd45757e4ca341c24affbe8e8e3"
|
||||
dependencies = [
|
||||
"deranged",
|
||||
"itoa",
|
||||
"libc",
|
||||
"num-conv",
|
||||
"num_threads",
|
||||
|
@ -8769,15 +8768,15 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "time-core"
|
||||
version = "0.1.4"
|
||||
version = "0.1.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
|
||||
checksum = "a9108bb380861b07264b950ded55a44a14a4adc68b9f5efd85aafc3aa4d40a68"
|
||||
|
||||
[[package]]
|
||||
name = "time-macros"
|
||||
version = "0.2.22"
|
||||
version = "0.2.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
|
||||
checksum = "7182799245a7264ce590b349d90338f1c1affad93d2639aed5f8f69c090b334c"
|
||||
dependencies = [
|
||||
"num-conv",
|
||||
"time-core",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue