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());
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
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.
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 29 updates:
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
0.3.29
0.3.30
0.3.29
0.3.30
1.0.50
1.0.58
1.0.193
1.0.197
1.0.108
1.0.115
1.1.3
1.1.5
0.4.31
0.4.37
1.0.193
1.0.197
0.6.1
0.6.5
0.2.11
0.2.14
1.3.1
3.1.0
1.0.70
1.0.79
1.0.33
1.0.36
2.0.39
2.0.58
1.0.85
1.0.91
0.9.3
0.10.2
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.58Release notes
Sourced from thiserror's releases.
Commits
df8bffa
Release 1.0.5814be209
Merge pull request #292 from dtolnay/deadcode15a1d64
Make compatible with -Dwarningsf55a5d2
Ignore mixed_attributes_style clippy lintf770921
Resolve assigning_clones clippy lint1d106b1
Release 1.0.578a5c4d1
Use write_str when args only consists of trailing commaf790bee
Phrase flag in terms of whether core::fmt machinery is requiredd43b759
Ignore needless_raw_string_hashes pedantic clippy lint in testd09c418
Touch up PR 286Updates
serde
from 1.0.193 to 1.0.197Release notes
Sourced from serde's releases.
Commits
5fa711d
Release 1.0.197f5d8ae4
Resolve prelude redundant import warnings1d54973
Merge pull request #2697 from nyurik/format-strb8fafef
A few minorwrite_str
optimizations and inliningc42ebb8
Update ui test suite to nightly-2024-02-129e68062
Ignore incompatible_msrv clippy lint for conditionally compiled code846f865
Ignore dead_code warnings in testede9762
Release 1.0.196d438c2d
Merge pull request #2682 from dtolnay/decimalpointbef110b
Format Unexpected::Float with decimal pointUpdates
serde_json
from 1.0.108 to 1.0.115Release notes
Sourced from serde_json's releases.
Commits
b1ebf38
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 comments3a3f61b
Temporarily disable miri on doctests4a0be88
Format regression tests with rustfmtd2dbbf7
Ignore dead code lint in tests8e7b37b
Merge pull request #1118 from serde-rs/transparenta25f6c6
Remove conditional on repr(transparent)fedf834
Ignore non_local_definitions false positive in testUpdates
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.37Release notes
Sourced from chrono's releases.
... (truncated)
Commits
7d62045
Prepare 0.4.376857d00
Hide re-export ofLocalResult
in docs9e22e48
SwapMappedLocalTime
andLocalResult
type aliasca3c3b6
Prepare 0.4.361850198
RevertTimeDelta
deprecationse05ba8b
AddMappedLocalTime::and_then
3adfd88
Main documentation: simplify links and reflow text1e8df65
Rustfmt doc comments1b57859
Run doctests withalloc
feature if possible6f2c7cc
Use different method to run feature-dependent doctestsUpdates
serde_derive
from 1.0.193 to 1.0.197Release notes
Sourced from serde_derive's releases.
Commits
5fa711d
Release 1.0.197f5d8ae4
Resolve prelude redundant import warnings1d54973
Merge pull request #2697 from nyurik/format-strb8fafef
A few minorwrite_str
optimizations and inliningc42ebb8
Update ui test suite to nightly-2024-02-129e68062
Ignore incompatible_msrv clippy lint for conditionally compiled code846f865
Ignore dead_code warnings in testede9762
Release 1.0.196d438c2d
Merge pull request #2682 from dtolnay/decimalpointbef110b
Format Unexpected::Float with decimal pointUpdates
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
a39033a
Enable/dev/urandom
fallback for MUSL-based Linux targets (#408)968dd48
Release v0.2.13 (#405)8ffd43e
Conditionally disable file fallback for Android and Linux (#396)6b7bcb5
Replace man7.org links with manned.org (#404)5f0701f
CI: Run tests on aarch64-apple-darwin and aarch64-apple-ios-sim. (#398)489eeee
Fix nightly build by removing redundantuse
(#399)d102c36
Usedoc_auto_cfg
instead ofdoc_cfg
(#392)2e4bb4d
Correct comments regarding LazyUsize (#391)f68a940
Release v0.2.12... _Description has been truncated_