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

fix(deps): update rust crate chrono to v0.4.38 #46

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 21, 2024

This PR contains the following updates:

Package Type Update Change
chrono dependencies patch 0.4.33 -> 0.4.38

Release Notes

chronotope/chrono (chrono)

v0.4.38

Compare Source

This release bring a ca. 20% improvement to the performance of the formatting code, and a convenient days_since method for the Weekday type.

Chrono 0.4.38 also removes the long deprecated rustc-serialize feature. Support for rustc-serialize will be soft-destabilized in the next Rust edition. Removing the feature will not break existing users of the feature; Cargo will just not update dependents that rely on it to newer versions of chrono.

In chrono 0.4.36 we made an accidental breaking change by switching to derive(Copy) for DateTime instead of a manual implementation. It is reverted in this release.

Removals
Additions
Fixes
  • Return error when rounding with a zero duration (#​1474, thanks @​Dav1dde)
  • Manually implement Copy for DateTime if offset is Copy (#​1573)
Internal
  • Inline test_encodable_json and test_decodable_json functions (#​1550)
  • CI: Reduce combinations in cargo hack check (#​1553)
  • Refactor formatting code (#​1335)
  • Optimize number formatting (#​1558)
  • Only package files needed for building and testing (#​1554)

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

v0.4.37

Compare Source

Version 0.4.36 introduced an unexpected breaking change and was yanked. In it LocalResult was renamed to MappedLocalTime to avoid the impression that it is a Result type were some of the results are errors. For backwards compatibility a type alias with the old name was added.

As it turns out there is one case where a type alias behaves differently from the regular enum: you can't import enum variants from a type alias with use chrono::LocalResult::*. With 0.4.37 we make the new name MappedLocalTime the alias, but keep using it in function signatures and the documentation as much as possible.

See also the release notes of chrono 0.4.36 from yesterday for the yanked release.

v0.4.36

Compare Source

This release un-deprecates the methods on TimeDelta that were deprecated with the 0.4.35 release because of the churn they are causing for the ecosystem.

New is the DateTime::with_time() method. As an example of when it is useful:

use chrono::{Local, NaiveTime};
// Today at 12:00:00
let today_noon = Local::now().with_time(NaiveTime::from_hms_opt(12, 0, 0).unwrap());
Additions
Deprecations
  • Revert TimeDelta deprecations (#​1543)
  • Deprecate TimeStamp::timestamp_subsec_nanos, which was missed in the 0.4.35 release (#​1486)
Documentation
  • Correct version number of deprecation notices (#​1486)
  • Fix some typos (#​1505)
  • Slightly improve serde documentation (#​1519)
  • Main documentation: simplify links and reflow text (#​1535)
Internal
  • CI: Lint benchmarks (#​1489)
  • Remove unnessary Copy and Send impls (#​1492, thanks @​erickt)
  • Backport streamlined NaiveDate unit tests (#​1500, thanks @​Zomtir)
  • Rename LocalResult to TzResolution, add alias (#​1501)
  • Update windows-bindgen to 0.55 (#​1504)
  • Avoid duplicate imports, which generate warnings on nightly (#​1507)
  • Add extra debug assertions to NaiveDate::from_yof (#​1518)
  • Some small simplifications to DateTime::date_naive and NaiveDate::diff_months (#​1530)
  • Remove unwrap in Unix Local type (#​1533)
  • Use different method to ignore feature-dependent doctests (#​1534)

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

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!

v0.4.34

Compare Source

Notable changes
  • In chrono 0.4.34 we finished the work to make all methods const where doing so is supported by rust 1.61.
  • We renamed the Duration type to TimeDelta. This removes the confusion between chrono's type and the later Duration type in the standard library. It will remain available under the old name as a type alias for compatibility.
  • The Windows implementation of Local is rewritten. The new version avoids panics when the date is outside of the range supported by windows (the years 1601 to 30828), and gives more accurate results during DST transitions.
  • The Display format of TimeDelta is modified to conform better to ISO 8601. Previously it converted all values greater than 24 hours to a value with days. This is not correct, as doing so changes the duration from an 'accurate' to a 'nominal' representation to use ISO 8601 terms.
Fixes
Additions
Changes
  • Rename Duration to TimeDelta, add type alias (#​1406)
  • Make TimeDelta methods const (#​1337)
  • Make remaining methods of NaiveDate, NaiveWeek, NaiveTime and NaiveDateTime const where possible (#​1337)
  • Make methods on DateTime const where possible (#​1400)
  • Make Display format of TimeDelta conform better to ISO 8601 (#​1328)
Documentation
Internal
  • Switch branch names: 0.4.x releases are the main branch, work on 0.5 happens in the 0.5.x branch (#​1390, #​1402).
  • Don't use deprecated method in impl Arbitrary for DateTime and set up CI test (#​1336)
  • Remove workaround for Rust < 1.61 (#​1393)
  • Bump codecov/codecov-action from 3 to 4 (#​1404)
  • Remove partial support for handling -0000 offset (#​1411)
  • Move TOO_LONG error out of parse_internal (#​1419)

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: Never, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the A-dependencies Area: Pull requests that update a dependency file label Sep 21, 2024
@simonsan simonsan merged commit e7fd0af into main Sep 21, 2024
38 checks passed
@simonsan simonsan deleted the renovate/chrono-0.x-lockfile branch September 21, 2024 11:08
@rustic-release-plz rustic-release-plz bot mentioned this pull request Nov 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 9, 2024
## 🤖 New release
* `rustic_scheduler`: 0.1.0 -> 0.1.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.1.1](v0.1.0...v0.1.1)
- 2024-11-09

### Fixed

- *(docs)* update readme
- *(docs)* update readme
- *(deps)* build sha2-asm on windows-gnu
- *(deps)* build sha2-asm on windows-gnu
- *(deps)* explicitly pull in sha2 asm extensions for non-windows
targets
- *(deps)* update rust crate chrono to v0.4.38
([#46](#46))
- *(deps)* update rust crate axum to v0.7.6
([#45](#45))
- *(deps)* update rust crate anyhow to v1.0.89
([#44](#44))
- typo in readme
([#37](#37))
- *(deps)* update rust crate serde_derive to 1.0.194
([#33](#33))
- *(deps)* update rust crate tungstenite to 0.21
([#34](#34))
- *(deps)* update rust crate axum to 0.7.3
([#29](#29))
- *(deps)* update rust crate url to 2.5
([#28](#28))
- *(deps)* update rust crate serde_derive to 1.0.193
([#27](#27))
- *(ci)* remove unmaintained `actions-rs` ci actions
- *(deps)* update rust crate toml to 0.8.8
([#25](#25))
- *(deps)* update rust crate serde_derive to 1.0.192
([#24](#24))
- *(deps)* update rust crate clap_derive to 4.4.7
([#23](#23))
- Remove redundant clone()
- *(deps)* update rust crate chrono to 0.4.31
([#16](#16))
- *(deps)* update rust crate toml to 0.8.0
([#12](#12))
- cloning
- build and clippy lints

### Other

- don't build on netbsd again, still fails due to `cannot find
-lexecinfo`
- update readme
- *(deps)* update deps
([#60](#60))
- try fix build problems
([#58](#58))
- *(deps)* update actions
([#59](#59))
- use runners according to available images and target triple
([#57](#57))
- update dprint config
([#56](#56))
- add triage label to new issues only if no label has been set when
creating it
([#55](#55))
- *(deps)* lock file maintenance rust dependencies
([#54](#54))
- ignore CHANGELOG.md in dprint formatting
- Update renovate.json
- use release-plz
- *(deps)* upgrade deps
- *(deps)* lockfile maintenance
- update deny.toml
- update deny.toml
- Revert "chore(deps): lock file maintenance"
([#49](#49))
- *(deps)* lock file maintenance
([#48](#48))
- *(deps)* update embarkstudios/cargo-deny-action action to v2
([#47](#47))
- *(deps)* update taiki-e/install-action digest to 18ab6bd
([#43](#43))
- *(deps)* update swatinem/rust-cache digest to 23bce25
([#42](#42))
- *(deps)* update obi1kenobi/cargo-semver-checks-action digest to
7272cc2 ([#41](#41))
- *(deps)* update embarkstudios/cargo-deny-action digest to 3f4a782
([#40](#40))
- *(deps)* update actions/download-artifact digest to fa0a91b
([#39](#39))
- *(deps)* update actions/checkout digest to 692973e
([#38](#38))
- *(deps)* lock file maintenance
([#35](#35))
- break old ci jobs when new commits are pushed so we don't fill up the
queue
- add project-cache-key for better caching in ci
- *(deps)* update taiki-e/install-action digest to 56ab793
([#32](#32))
- *(deps)* update taiki-e/install-action digest to a9ad291
([#31](#31))
- *(deps)* update actions/download-artifact action to v4
([#30](#30))
- dprint fmt
- automerge lockfile maintenance
- activate automerge for github action digest update
- activate automerge for github action digest update
- *(fmt)* upgrade dprint config
- *(deps)* update taiki-e/install-action digest to d211c4b
([#26](#26))
- netbsd nightly builds fail due to missing execinfo, so we don't build
on it for now
- update rustsec/audit-check
- update taiki-e/install-action
- update dtolnay/rust-toolchain
- Run actions that need secrets.GITHUB_TOKEN only on rustic-rs org
- lockfile maintenance
- *(deps)* update embarkstudios/cargo-deny-action digest to 1e59595
([#22](#22))
- *(deps)* update taiki-e/install-action digest to 4d85042
([#21](#21))
- *(deps)* update actions/checkout digest to b4ffde6
([#20](#20))
- add results to ci
- update dprint plugins
- compile dependencies with optimizations in dev mode
- Add client/ site for client statistics
([#19](#19))
- Update README.md
- *(readme)* remove note about rustic_core not being published
- add x86_64-pc-windows-gnu target
- *(deps)* upgrade deps
- dprint fmt
- update cross ci
- *(cargo)* remove special os-dependent linker/compiler settings
- *(manifest)* use rustic_core from crates.io
- sign binaries using rsign2 as well
- add contributing
- fix list indent
- rewrite contributing remark
- relink to new image location
- *(deps)* update dependencies
- *(deps)* update actions/checkout action to v4
([#18](#18))
- *(deps)* pin dependencies
([#17](#17))
- fmt
- add cargo deny
- *(deps)* update taiki-e/install-action digest to de0d48b
([#15](#15))
- add merge queue checks
- *(deps)* update actions/checkout action to v4
([#13](#13))
- *(deps)* update taiki-e/install-action action to v2
([#14](#14))
- *(deps)* update swatinem/rust-cache digest to a95ba19
([#11](#11))
- *(deps)* pin dependencies
([#10](#10))
- run workflow on renovate branches
- update changelog
- run release checks also on release subbranches
- add triaging of issues
- run git-cliff with latest tag during release
- add dev tooling
- add changelog generation
- fix woggly github action comparison
- use bash substring comparison to determine package name from branch
- set right package
- fix github refs
- decrease build times on windows
- fix workflow name for create-binary-artifact action, and check
breaking changes package dependent
- *(changelog)* add generated changelog
- add release CD
- fix comment being wrongly attributed
- update ci to reflect changes and optimizations from rustic_server
- remove lint from ci workflow and keep it separate, replace underscore
in workflow file
- add comment about shallow clone
- declutter and reorganize
- add signature and shallow clones to nightly
- update header
- add link to nightly downloads in documentation
- *(readme)* add link to binaries and badge
- nightly builds
- refactor to library and client + server binaries
- fmt
- fix binary builds
- *(readme)* rewrite comment for rustic_core, uses git dependency now
- *(deps)* use workspace dependency on git repo
- add rustic to artifact build
- pull in rustic manually for now
- *(deps)* update dependencies
- add licenses, fix manifest
- fmt
- add ci
- Update rustic_scheduler.toml
- Update rustic_scheduler.toml
- initial commit

### Bug Fixes

- Build and clippy lints
- Cloning

### Documentation

- Add licenses, fix manifest
- Rewrite comment for rustic_core, uses git dependency now
- Add link to binaries and badge
- Add link to nightly downloads in documentation
- Add generated changelog

### Miscellaneous Tasks

- Add ci
- Pull in rustic manually for now
- Add rustic to artifact build
- Fix binary builds
- Nightly builds
- Update header
- Add signature and shallow clones to nightly
- Declutter and reorganize
- Add comment about shallow clone
- Remove lint from ci workflow and keep it separate, replace underscore
in
  workflow file
- Update ci to reflect changes and optimizations from rustic_server
- Fix comment being wrongly attributed
- Add release CD
- Fix workflow name for create-binary-artifact action, and check
breaking
  changes package dependent
- Decrease build times on windows
- Fix github refs
- Set right package
- Use bash substring comparison to determine package name from branch
- Fix woggly github action comparison
- Add changelog generation
- Add dev tooling
- Run git-cliff with latest tag during release
- Add triaging of issues
- Run release checks also on release subbranches

### Refactor

- Refactor to library and client + server binaries

<!-- generated by git-cliff -->
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant