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.
env_logger::fmt::Style:
The bespoke styling API, behind color, was removed, in favor of accepting any
ANSI styled string and adapting it to the target stream's capabilities.
Possible styling libraries include:
anstyle is a minimal, runtime string styling API and is re-exported as env_logger::fmt::style
owo-colors is a feature rich runtime string styling API
color-print for feature-rich compile-time styling API
Bumps the minor group with 22 updates:
0.1.75
0.1.79
1.5.0
1.6.0
0.4.31
0.4.37
0.3.29
0.3.30
0.21.10
0.23.4
1.35.1
1.37.0
1.0.76
1.0.81
1.0.193
1.0.197
4.4.11
4.5.4
2.1.1
2.2.0
0.10.1
0.11.1
0.4.20
0.4.21
0.2.13
0.2.14
0.11.3
0.13.0
0.1.14
0.1.15
1.10.2
1.10.4
1.6.1
1.8.0
3.4.0
3.5.0
0.11.1
0.11.3
1.0.51
1.0.58
0.13.0
0.13.1
0.3.31
0.3.34
Updates
async-trait
from 0.1.75 to 0.1.79Release notes
Sourced from async-trait's releases.
Commits
1eb21ed
Release 0.1.7982cb95c
Resolve unused field of ReplaceSelf syntax tree visitorcd8286b
Update ui test suite to nightly-2024-03-22c73061d
Release 0.1.78b6314bc
Refactor inferred bound filtering8d51928
Merge pull request #262 from dtolnay/asyncspanc98a408
Minimize use of async token's span in expanded code2f5343c
Merge pull request #261 from dtolnay/inferredbound1a01bb4
Skip needlessly generating inferred bounds during ?Sende68d68c
Merge pull request #260 from dtolnay/qualificationsUpdates
bytes
from 1.5.0 to 1.6.0Release notes
Sourced from bytes's releases.
Changelog
Sourced from bytes's changelog.
Commits
ce8d8a0
chore: prepare bytes v1.6.0 (#681)536db06
Use ManuallyDrop instead of mem::forget (#675)ca00411
Remove commented tests for Bytes::unsplit (#677)7968f6f
Remove redundant reserve call (#674)c5fae00
copy_to_bytes: Add panic section to docs (#676)99584cc
Use Iterator from the prelude (#673)4628927
Refactor split_at/split_to (#663)1bcd212
get_vec_pos: use &self instead of &mut self (#670)f586ffc
set_vec_pos does not need a second parameter (#672)c6972d6
Calculate original capacity only if necessary (#666)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
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
rustls
from 0.21.10 to 0.23.4Commits
1dee8b1
Prepare 0.23.43a03df6
Correct furtherdead_code
warningsd8a0f94
Fix newclippy::use_self
warnings3185d7f
examples: fix server acceptor alert write behaviourb5a8cef
server: add AcceptedAlert::write_alle06c9fe
server: improve AcceptedAlert::write documentationa7d2ad6
Test that reproduces the problem9f3adc7
MapSignatureScheme::ECDSA_SHA1_Legacy
toSignatureAlgorithm::ECDSA
d633942
MoveMockServerVerifier
to tests::common667482a
Add path dependency for rustls-post-quantumUpdates
tokio
from 1.35.1 to 1.37.0Release notes
Sourced from tokio's releases.
... (truncated)
Commits
9c337ca
chore: prepare Tokio v1.37.0 (#6435)e542501
io: document cancel safety ofAsyncBufReadExt::fill_buf
(#6431)4601c84
stream: addnext_many
andpoll_next_many
toStreamMap
(#6409)deff252
util: document cancel safety ofSinkExt::send
andStreamExt::next
(#6417)4565b81
sync: add arwlock()
method to ownedRwLock
guards (#6418)3ce4720
sync: addis_closed
,is_empty
, andlen
to mpsc receivers (#6348)8342e4b
util: assert compatibility betweenLengthDelimitedCodec
options (#6414)4c453e9
readme: add description about benchmarks (#6425)1846483
sync: expose strong and weak counts of mpsc sender handles (#6405)baad270
sync: add Semaphore example for limiting the number of outgoing requests (#6419)Updates
anyhow
from 1.0.76 to 1.0.81Release notes
Sourced from anyhow's releases.
Commits
4aad4ed
Release 1.0.818be9091
Merge pull request #354 from dtolnay/deadcodea2eb7dd
Make compatible with -Dwarnings5443719
Release 1.0.80dfc7bc0
Work around prelude redundant import warnings6e4f86b
Import from alloc not std, where possiblef885a13
Ignore incompatible_msrv clippy false positives in testfefbcbc
Ignore incompatible_msrv clippy lint78f2d81
Update ui test suite to nightly-2024-02-08edd88d3
Update ui test suite to nightly-2024-01-31Updates
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
clap
from 4.4.11 to 4.5.4Release notes
Sourced from clap's releases.
... (truncated)
Changelog
Sourced from clap's changelog.
... (truncated)
Commits
5e4facf
chore: Release8880b0a
docs: Update changelog132b5dd
Merge pull request #5425 from epage/litdf915fe
fix(derive): Re-allow expressions for id's8eab48f
refactor(derive): Make it easier to work with 'Name'be73195
refactor(derive): Clarify tests024089b
Merge pull request #5415 from Pi-Cla/patch-13b35dba
docs: Add mention of nushell to clap_complete README58469d1
Merge pull request #5405 from epage/docs655d829
docs(derive): Fix ToC links within tutorial chaptersUpdates
clap-verbosity-flag
from 2.1.1 to 2.2.0Changelog
Sourced from clap-verbosity-flag's changelog.
Commits
42895a2
chore: Release clap-verbosity-flag version 2.2.0527c6e3
docs: Update changelogca600f1
Merge pull request #94 from BTOdell/feature/is_setef15043
Update function name and docs.2fc7470
Addis_set
public function.6420685
Merge pull request #92 from clap-rs/renovate/rust-1.x1e32275
chore(deps): update msrv to v1.7384b3db2
Merge pull request #91 from clap-rs/renovate/env_logger-0.xbb266d0
chore(deps): update rust crate env_logger to 0.11.163f6db4
chore(deps): update rust crate clap to 4.4.18Updates
env_logger
from 0.10.1 to 0.11.1Release notes
Sourced from env_logger's releases.
Changelog
Sourced from env_logger's changelog.
... (truncated)
Commits
7113ad4
chore: Release9f73bde
docs: Update changelog489ba18
Merge pull request #302 from Bobo1239/main6f31706
fix(fmt): Fix passing of WriteStyle when using Target::Pipe8f4361b
chore: Releaseba41ebb
docs: Update changelog5e226cb
chore: Release23441be
Merge pull request #300 from epage/other6c2ea80
style(filter): Clean up2d35260
feat(filter): Add a Logger decoratorUpdates
log
from 0.4.20 to 0.4.21Changelog
Sourced from log's changelog.
Commits
3ccdc28
Merge pull request #617 from rust-lang/cargo/0.4.216153cb2
prepare for 0.4.21 releasef0f7494
Merge pull request #613 from rust-lang/feat/kv-cleanup2b220bf
clean up structured logging example646e9ab
use original Visitor name for VisitValuecf85c38
add needed subfeatures to kv_unstable73e9539
fix up capturing of :err31bb4b0
move error macros togetherad91711
support field shorthand in macros90a347b
restore removed APIs as deprecatedUpdates
pin-project-lite
from 0.2.13 to 0.2.14Release notes
Sourced from pin-project-lite's releases.
Changelog
Sourced from pin-project-lite's changelog.
Commits
c55cf7b
Release 0.2.14a84a49b
Update changelog