An open index of dependabot pull requests across open source projects.

Bump the rust-dependencies group with 4 updates

Merged
Number: #602
Type: Pull Request
State: Merged
Author: dependabot[bot] dependabot[bot]
Association: Contributor
Comments: 0
Created: September 01, 2025 at 09:21 AM UTC
(8 days ago)
Updated: September 02, 2025 at 03:26 PM UTC
(7 days ago)
Merged: September 02, 2025 at 03:26 PM UTC
(7 days ago)
by isabelatkinson
Time to Close: 1 day
Labels:
dependencies rust
Description:

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

Release notes

Sourced from time's releases.

v0.3.42

See the changelog for details.

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 in time::convert. This is similar to the existing per method, but can return any of the primitive numeric types that can represent the result. This will cut down on as 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 and impl Ord for Month; this assumes the months are in the same year
  • SystemTimeExt trait, adding methods for checked arithmetic with time::Duration and obtaining the difference between two SystemTimes as a time::Duration
  • Permit using UtcDateTime with rand (this was inadvertently omitted previously)
  • impl core::error::Error for all error types (now available when the std 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 and UtcDateTime::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, and OffsetDateTime. The first three have gains of approximately 85% (i.e. 6× faster).
  • Nearly all methods are #[inline].
Commits

Updates deranged from 0.4.0 to 0.5.2

Commits

Updates time-core from 0.1.4 to 0.1.5

Commits

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 to UtcOffset::unix_timestamp)
  • UtcOffset::timestamp_nanos (moved to UtcOffset::unix_timestamp_nanos)
  • date (moved to macros::date)
  • time (moved to macros::time)
  • offset (moved to macros::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

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
Commits:
1
Files Changed:
1
Additions:
+8
Deletions:
-9
Package Dependencies
Package:
time
Ecosystem:
cargo
Version Change:
0.3.41 → 0.3.42
Update Type:
Patch
Package:
time-core
Ecosystem:
cargo
Version Change:
0.1.4 → 0.1.5
Update Type:
Patch
Package:
deranged
Ecosystem:
cargo
Version Change:
0.4.0 → 0.5.2
Update Type:
Minor
Package:
time-macros
Ecosystem:
cargo
Version Change:
0.2.22 → 0.2.23
Update Type:
Patch
Technical Details
ID: 6199797
UUID: 2789144548
Node ID: PR_kwDOAgEgAM6mPvfk
Host: GitHub
Repository: mongodb/bson-rust
Merge State: Unknown