Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Renovate] Update Rust crate chrono to 0.4.35 #1268

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 6, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
chrono dependencies patch 0.4.34 -> 0.4.35

Release Notes

chronotope/chrono (chrono)

v0.4.35

Compare Source

Most of our efforts have shifted to improving the API for a 0.5 release, for which cleanups and refactorings are landing on the 0.4.x branch.

The most significant changes in this release are two sets of deprecations.

  • We deprecated all timestamp-related methods on NaiveDateTime. The reason is that a timestamp is defined to be in UTC. The NaiveDateTime type doesn't know the offset from UTC, so it was technically wrong to have these methods. The alternative is to use the similar methods on the DateTime<Utc> type, or from the TimeZone trait.

    Converting from NaiveDateTime to DateTime<Utc> is simple with .and_utc(), and in the other direction with .naive_utc().

  • The panicking constructors of TimeDelta (the new name of the Duration type) are deprecated. This was the last part of chrono that defaulted to panicking on error, dating from before rust 1.0.

  • A nice change is that NaiveDate now includes a niche. So now Option<NaiveDate>, Option<NaiveDateTime> and Option<DateTime<Tz>> are the same size as their base types.

  • format::Numeric and format::Fixed are marked as non_exhaustive. This will allow us to improve our formatting and parsing support, and we have reason to believe this breaking change will have little to no impact on users.

Additions

  • Add DateTime::{from_timestamp_micros, from_timestamp_nanos} (#​1234)
  • Add getters to Parsed (#​1465)

Deprecations

  • Deprecate timestamp methods on NaiveDateTime (#​1473)
  • Deprecate panicking constructors of TimeDelta (#​1450)

Changes/fixes

  • Use NonZeroI32 inside NaiveDate (#​1207)
  • Mark format::Numeric and format::Fixed as non_exhaustive (#​1430)
  • Parsed fixes to error values (#​1439)
  • Use overflowing_naive_local in DateTime::checked_add* (#​1333)
  • Do complete range checks in Parsed::set_* (#​1465)

Documentation

Internal

Thanks to all contributors on behalf of the chrono team, @​djc and @​pitdicker!


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from kevinmatthes as a code owner March 6, 2024 16:40
@renovate renovate bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Mar 6, 2024
Copy link
Contributor

github-actions bot commented Mar 6, 2024

Filename                            Stmts    Miss  Cover    Missing
--------------------------------  -------  ------  -------  -------------------------------------
src/macros.rs                          23       0  100.00%
src/application.rs                     35      35  0.00%    32-146
src/increment_version.rs              179      26  85.47%   31-47, 115-117, 136, 142-147, 253-270
src/main.rs                             3       3  0.00%    22-24
src/running.rs                          8       0  100.00%
src/utilities.rs                       94       7  92.55%   22-26, 64-77, 145
src/version.rs                         69       0  100.00%
src/complain.rs                       248      11  95.56%   30-75
src/graphing/graph.rs                 219       0  100.00%
src/graphing/agd.rs                   228       2  99.12%   356, 378
src/traits/convert_buffer.rs           30       0  100.00%
src/traits/to_stderr.rs                 6       0  100.00%
src/traits/append_as_line.rs           12       0  100.00%
src/traits/colour_message.rs           19       0  100.00%
src/traits/file_formats.rs             25       0  100.00%
src/traits/prefer.rs                    5       0  100.00%
src/traits/read_file.rs                56      56  0.00%    46-153
src/cff/cff_create.rs                 226       2  99.12%   237-245
src/cff/cffreference.rs               109       0  100.00%
src/pattern/io_processor.rs            56      56  0.00%    77-173
src/pattern/buffer.rs                  33       0  100.00%
src/pattern/writer.rs                 125      51  59.20%   136-141, 148-156, 190-202, 234-264
src/changelog/comment_changes.rs      274     274  0.00%    26-473
src/changelog/fragment.rs             128       2  98.44%   138, 146
src/changelog/ronlog.rs               227     162  28.63%   27-288, 354, 395-401
TOTAL                                2437     687  71.81%

@kevinmatthes kevinmatthes enabled auto-merge (squash) March 6, 2024 17:42
@kevinmatthes kevinmatthes merged commit c90033b into main Mar 6, 2024
122 checks passed
@kevinmatthes kevinmatthes deleted the renovate/chrono-0.x branch March 6, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant