Bump the rust-dependencies group with 4 updates
Type: Pull Request
State: Merged
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 0
(8 days ago)
(7 days ago)
(7 days ago)
by isabelatkinson
dependencies rust
Bumps the rust-dependencies group with 4 updates: time, deranged, time-core and time-macros.
Updates time
from 0.3.41 to 0.3.42
Changelog
Sourced from time's changelog.
0.3.42 [2025-08-31]
Added
Time::duration_until
Time::duration_since
per_t
method for all types intime::convert
. This is similar to the existingper
method, but can return any of the primitive numeric types that can represent the result. This will cut down onas
casts while ensuring correctness. Type inference isn't perfect, so you may need to provide a type annotation in some situations.impl PartialOrd for Month
andimpl Ord for Month
; this assumes the months are in the same yearSystemTimeExt
trait, adding methods for checked arithmetic withtime::Duration
and obtaining the difference between twoSystemTime
s as atime::Duration
- Permit using
UtcDateTime
withrand
(this was inadvertently omitted previously)impl core::error::Error
for all error types (now available when thestd
feature is disabled)- MacOS can now obtain the local UTC offset in multi-threaded programs as the system APIs are thread-safe.
#[track_caller]
has been added to all relevant methods.Changed
- The minimum supported Rust version is now 1.81.0.
- The dependency on
itoa
has been removed, as the standard library now has similar functionality by default.- Formatting a component that involves a floating point number is now guaranteed to be deterministic, avoiding any subtle differences between platforms or compiler versions.
Fixed
- Serializing timestamps with nanosecond precision should always emit the correct value. Previously, it could be off by one nanosecond due to floating point imprecision.
- A previously unknown bug in
OffsetDateTime::to_offset
andUtcDateTime::to_offset
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.Miscellaneous
- The amount of code generated by macros has been massively reduced, on the order of 65-70% for typical use cases of
format_description!
.- Significant performance gains for comparisons of
Time
,PrimitiveDateTime
,UtcDateTime
, andOffsetDateTime
. The first three have gains of approximately 85% (i.e. 6× faster).- Nearly all methods are
#[inline]
.
Commits
ed2852e
v0.3.42 release1067543
Fix copied commentf45bff5
Useconst
block for readabilityb38c118
Add#[inline]
to most methodsf410951
Add#[track_caller]
to numerous methodsd30f3d0
OptimizeTime::sub
e807ad3
Add tests, benchmarks3fcb83d
OptimizeOffsetDateTime
comparisons95db5c3
Optimize UTC offset conversions998b26f
OptimizeTime::duration_until
- Additional commits viewable in compare view
Updates deranged
from 0.4.0 to 0.5.2
Commits
- See full diff in compare view
Updates time-core
from 0.1.4 to 0.1.5
Commits
- See full diff in compare view
Updates time-macros
from 0.2.22 to 0.2.23
Changelog
Sourced from time-macros's changelog.
0.2.23 [2020-11-17]
Compatibility notes
Due to #293, any method that requires knowledge of the local offset will now fail on Linux. For
try_
methods, this means returning an error. For others, it means assuming UTC.Deprecated
UtcOffset::timestamp
(moved toUtcOffset::unix_timestamp
)UtcOffset::timestamp_nanos
(moved toUtcOffset::unix_timestamp_nanos
)date
(moved tomacros::date
)time
(moved tomacros::time
)offset
(moved tomacros::offset
)OffsetDateTime::now_local
(assumes UTC if unable to be determined)UtcOffset::local_offset_at
(assumes UTC if unable to be determined)UtcOffset::current_local_offset
(assumes UTC if unable to be determined)
Commits
f153a1c
v0.3 backportsc4619ea
Update CI for transition from main branch97e45ea
Better support for nightly1a4b1a0
Bump version of time-macros- See full diff in compare view
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 commands and options
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 <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions
Pull Request Statistics
1
1
+8
-9
Package Dependencies
Technical Details
ID: | 6199797 |
UUID: | 2789144548 |
Node ID: | PR_kwDOAgEgAM6mPvfk |
Host: | GitHub |
Repository: | mongodb/bson-rust |
Merge State: | Unknown |