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.
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
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
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());
Detect conflicting schema_with attributes on fields with schemars annotations by @swlynch99 (#715)
This extends the existing avoidance mechanism to a new variant fixing #712.
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore 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 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 ` 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 ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the rust-dependencies group with 10 updates in the / directory:
0.4.34
0.4.38
1.0.28
1.0.29
2.0.4
2.0.5
1.10.3
1.10.4
1.0.197
1.0.199
1.0.114
1.0.116
2.9.6
2.9.7
0.10.14
0.10.18
0.1.11
0.1.12
3.6.1
3.8.0
Updates
chrono
from 0.4.34 to 0.4.38Release notes
Sourced from chrono's releases.
... (truncated)
Commits
352a352
Prepare 0.4.3846d44d6
Manually implementCopy
forDateTime
if offset isCopy
760eb66
Update windows-bindgen requirement from 0.55 to 0.56391187f
Return error when rounding with zero durationffc75e5
AddTimeDelta::checked_mul
andTimeDelta::checked_div
f8cecbe
MakeWeekday::num_days_from public
, rename todays_since
.0cfc405
Optimize number formatting74ba83b
Takepad
by value78e79db
Match on tuples informat_fixed
f3d76c7
Match on tuples informat_numeric
Updates
flate2
from 1.0.28 to 1.0.29Release notes
Sourced from flate2's releases.
Commits
9a25bc0
Merge pull request #403 from folkertdev/bump-version-zlib-rse9c87c0
zlib-rs support version bump8a502a7
Merge pull request #402 from jongiddy/bufread-tests320e7c7
Merge pull request #400 from folkertdev/zlib-rs-c-api6a26c0c
Test that BufRead and Write can be used after decoding7e6429a
add zlib-rs support via the libz-rs-sys C api for zlib-rsae78497
Merge pull request #398 from rust-lang/fix-imports20bbd74
Avoid redudant imports0a584f4
Merge pull request #394 from icmccorm/main8386651
Switched to storing mz_stream as a raw pointer to fix tree borrows violation.Updates
indoc
from 2.0.4 to 2.0.5Release notes
Sourced from indoc's releases.
Commits
4bfa29f
Release 2.0.58d38299
Merge pull request #62 from ilyagr/docstring735ddcc
Update docstring forindoc!
60b5fa2
Remove 'remember to update' reminder from Cargo.toml15abc17
Test docs.rs documentation build in CIUpdates
regex
from 1.10.3 to 1.10.4Commits
aa2d8bd
1.10.4088d7f3
api: add Cow guarantee to replace APIa5ae351
regex-automata-0.4.69cf4a42
automata: fix bug where reverse NFA lacked an unanchored prefix10fe722
style: clean up some recent lint violationsd7f9347
regex-automata-0.4.507ef7f1
automata: make additional prefileter metadata publicUpdates
serde
from 1.0.197 to 1.0.199Release notes
Sourced from serde's releases.
Commits
1477028
Release 1.0.199789740b
Merge pull request #2732 from aatifsyed/master8fe7539
fix: ambiguous associated type in forward_to_deserialize_any!f6623a3
Ignore cast_precision_loss pedantic clippy lintc4fb923
Release 1.0.19865b7eea
Merge pull request #2729 from dtolnay/saturating01cd696
Integrate Saturating<T> deserialization into impl_deserialize_num macroc13b3f7
Format PR 2709a6571ee
Merge pull request #2709 from jbethune/master6e38aff
Revert "Temporarily disable miri on doctests"Updates
serde_json
from 1.0.114 to 1.0.116Release notes
Sourced from serde_json's releases.
Commits
a3f62bb
Release 1.0.11612c8ee0
Hide "non-exhaustive patterns" errors when crate fails to compile051ce97
Merge pull request 1124 from mleonhard/master25dc750
Replacefeatures_check
mod with a call tostd::compile_error!
. Fixes htt...2e15e3d
Revert "Temporarily disable miri on doctests"0baba28
Resolve legacy_numeric_constants clippy lintsb1ebf38
Release 1.0.115c3dc153
Merge pull request #1119 from titaniumtraveler/pr218770b
Explicitly install a Rust toolchain for cargo-outdated job840da8e
Fix missing backticks in doc commentsUpdates
ureq
from 2.9.6 to 2.9.7Changelog
Sourced from ureq's changelog.
Commits
caedf92
2.9.7c7e81bd
Update changelog1f6e80c
Remove stray structfda696e
Bumps rustls to 0.22.440d56db
Update base64 to 0.22fbdeca8
Add link toAgentBuilder
71be542
fix: Determine the URL to connect to after middleware finishesfce56bb
Set default proxy ports to spec489b305
Fix unused importe303f09
Fix unused field in structUpdates
figment
from 0.10.14 to 0.10.18Commits
4bb7876
New version: 0.10.18.2c83ffa
Add lossy extraction.d2a31e8
New version: 0.10.17.94d09e1
Use consistent path/key wording. Fix error paths.060742b
New version: 0.10.16.6370f6b
Export 'Error::chain()'. Impl 'Error: From<&str>'.6253b25
New version: 0.10.15.0ae4eaa
Move jail utils to 'jail' module.3a063a2
Add 'Jail::create_binary()' method.70a105f
Document and test 'Data::file_exact()'.Updates
monostate
from 0.1.11 to 0.1.12Commits
7d82dc9
Release 0.1.1258b4704
Ignore uninlined_format_args pedantic clippy lint7b829d0
Raise required compiler to rust 1.604098a7b
Require a version of syn and proc-macro2 that has C-string support4024b93
Mark C-string literals as unsupported694d9df
Fix typo in readme and crate-level documentation3a076aa
Revert "Temporarily disable miri on doctests"c85d13c
Explicitly install a Rust toolchain for cargo-outdated job5adf731
Temporarily disable miri on doctestsee9c56f
Merge pull request #7 from dtolnay/exhaustiveUpdates
serde_with
from 3.6.1 to 3.8.0Release notes
Sourced from serde_with's releases.
Commits
7e66d6b
Bump version to v3.8.0 (#734)4a4fcb3
Bump version to v3.8.0167e865
Implement (De)Serialization for Pinned Smart Pointers (#733)04de4ce
Add SerializeAs support for Pin<&'a T> and Pin<&'a mut T>9c2dac7
Implement (De)Serialization for Pinned Smart Pointers9989d8e
Add test that serde_conv will not triggerclippy::ptr_arg
(#731)754c081
Add test that serde_conv will not triggerclippy::ptr_arg
bb90db5
Update the OneOrMany doctest to test serialization too #728 (#730)f12ece2
Update the OneOrMany doctest to test serialization too #72857e4ee2
Bump dev deps (#726)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