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());
linux_disable_fallback crate feature to disable /dev/urandom-based fallback on Linux and
Android targets. Enabling this feature bumps minimum supported Linux kernel version to 3.17 and
Android API level to 23 (Marshmallow). #396
Changed
Disable /dev/urandom fallback for Linux targets outside of the following target_arches:
aarch64, arm, powerpc, powerpc64, s390x, x86, x86_64#396
Do not catch EPERM error code on Android while checking availability of
the getrandom syscall #396
Bumps the cargo-deps group with 23 updates in the / directory:
0.2.89
0.2.92
0.3.66
0.3.69
0.3.29
0.3.30
0.3.29
0.3.30
0.4.39
0.4.42
0.3.39
0.3.42
0.3.29
0.3.30
0.3.66
0.3.69
0.3.29
0.3.30
1.0.50
1.0.59
1.0.193
1.0.200
1.0.108
1.0.116
1.1.3
1.1.5
0.4.31
0.4.38
0.6.1
0.6.5
0.2.11
0.2.14
1.3.1
3.1.0
1.0.85
1.0.91
0.9.3
0.10.3
1.35.0
1.37.0
0.3.6
0.3.7
0.3.0
0.4.0
0.20.0
0.21.0
Updates
wasm-bindgen
from 0.2.89 to 0.2.92Changelog
Sourced from wasm-bindgen's changelog.
... (truncated)
Commits
2a4a493
Prepare v0.2.92 release (#3869)8e992dc
Don't allow invalid Unicode scalar values inchar
(#3866)807bdb4
Revert "Allow using'static
lifetimes in functions (#3856)" (#3865)983ec57
AddNonNull\<T>
as parameter (#3857)0095fa7
Allow overriding headless test URL (#3861)0023077
Update passing-rust-closures-to-js.md (#3859)b9ccb8f
Allow using'static
lifetimes in functions (#3856)c80bf9a
Add support forOption\<*const T>
,Option\<*mut T>
andNonNull\<T>
(#3852)0c09e15
Fix CI (#3853)557e2e6
Introduce impl TryFrom for Number that succeeds iff the value is within the s...Updates
js-sys
from 0.3.66 to 0.3.69Commits
Updates
futures-core
from 0.3.29 to 0.3.30Release notes
Sourced from futures-core's releases.
Changelog
Sourced from futures-core's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
futures-channel
from 0.3.29 to 0.3.30Release notes
Sourced from futures-channel's releases.
Changelog
Sourced from futures-channel's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
wasm-bindgen-futures
from 0.4.39 to 0.4.42Commits
Updates
wasm-bindgen-test
from 0.3.39 to 0.3.42Commits
Updates
futures-util
from 0.3.29 to 0.3.30Release notes
Sourced from futures-util's releases.
Changelog
Sourced from futures-util's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
web-sys
from 0.3.66 to 0.3.69Commits
Updates
futures
from 0.3.29 to 0.3.30Release notes
Sourced from futures's releases.
Changelog
Sourced from futures's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
futures-sink
from 0.3.29 to 0.3.30Release notes
Sourced from futures-sink's releases.
Changelog
Sourced from futures-sink's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
futures-io
from 0.3.29 to 0.3.30Release notes
Sourced from futures-io's releases.
Changelog
Sourced from futures-io's changelog.
Commits
de1a0fd
Release 0.3.3068d2845
Remove a redundant space in example (#2816)fdd2ce7
Fix broken link inCopyBufAbortable
docs (#2815)272a3c7
Use cfg(target_has_atomic) on no-std targetsc179201
FillBuf: Do not call poll_fill_buf twicee6735f3
FuturesUnordered: Fix clear implementation04d01a0
FuturesOrdered: Use 64-bit indexe4aa659
remove redundant impl Unpin17851c1
provide a mechanism to determine if io read/write halves are from the same st...4910799
provide a non-destructive mechanism to determine if a sink/stream are pairedUpdates
thiserror
from 1.0.50 to 1.0.59Release notes
Sourced from thiserror's releases.
Commits
e7ad85e
Release 1.0.59af477ec
Merge pull request #297 from dtolnay/traitidentf3fbd99
Implement ToTokens without reliance on {:?}508ece8
Revert "Temporarily disable miri on doctests"c8c804c
Explicitly install a Rust toolchain for cargo-outdated job6969595
Merge pull request #293 from dtolnay/workspacewrapper488d52f
Apply RUSTC_WORKSPACE_WRAPPERba33438
Temporarily disable miri on doctestsdf8bffa
Release 1.0.5814be209
Merge pull request #292 from dtolnay/deadcodeUpdates
serde
from 1.0.193 to 1.0.200Release notes
Sourced from serde's releases.
Commits
cc865ac
Release 1.0.2002d973c1
Merge pull request #2733 from jamessan/nan-decimal6ca499b
Only format Unexpected::Float with decimal point if it is finite1477028
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 macroUpdates
serde_json
from 1.0.108 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
pin-project
from 1.1.3 to 1.1.5Release notes
Sourced from pin-project's releases.
Changelog
Sourced from pin-project's changelog.
Commits
8630e1a
Release 1.1.578d23fd
Suppress unused_qualifications lint in generated codefd08c71
Ignore more lints at workspace level24597ec
Add link to clippy::thread_local_initializer_can_be_made_const bug report3ad1bd3
tidy: Use yq via venvcb24a63
tests: Fix non_local_definitions warningd42e9cc
tidy: Check TOML formatbf0da83
Revert "Move negative_impls test from run-pass to ui"e1ce805
Update ui test output to nightly-2024-02-07537b60c
Revert "Revert "Revert "Disable dependabot update for Github Actions"""Updates
chrono
from 0.4.31 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
serde_derive
from 1.0.193 to 1.0.200Release notes
Sourced from serde_derive's releases.
Commits
cc865ac
Release 1.0.2002d973c1
Merge pull request #2733 from jamessan/nan-decimal6ca499b
Only format Unexpected::Float with decimal point if it is finite1477028
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 macroUpdates
serde-wasm-bindgen
from 0.6.1 to 0.6.5Commits
f073bd4
chore: Release6281985
Fix map roundtrips in untagged enums (#64)b1b73ac
chore: Release03a470d
Add test for field aliasesff11d81
Revert "Use field indices for struct deserialization"e65f027
chore: Release0cf8879
Fix find-replace typo in docsff83666
Fix doc annotation014e415
chore: Release34aab01
Use Wasm target for docs.rsUpdates
getrandom
from 0.2.11 to 0.2.14Changelog
Sourced from getrandom's changelog.
Commits
Superseded by #471.