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.
Bumps the cargo-deps group with 28 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.114
1.1.3
1.1.5
0.4.31
0.4.35
1.0.193
1.0.197
0.6.1
0.6.5
0.2.11
0.2.12
1.3.1
3.1.0
1.0.70
1.0.79
1.0.33
1.0.35
2.0.39
2.0.52
1.0.85
1.0.89
0.9.3
0.10.0
1.35.0
1.36.0
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.114Release notes
Sourced from serde_json's releases.
Commits
e1b3a6d
Release 1.0.1146fb7026
Work around prelude redundant import warnings34a04c5
Ignore incompatible_msrv clippy false positives in testca05f69
Remove unused Float::is_sign_negative trait method09d865b
Release 1.0.1135aeab4e
Merge pull request #1109 from serde-rs/removeca3c2ca
Add swap_remove and shift_remove methods on Map7fece96
Release 1.0.1126a6d2bb
Merge pull request #1107 from serde-rs/unexpectedfloat83d7bad
Format f64 in error messages using ryuUpdates
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.35Release notes
Sourced from chrono's releases.
... (truncated)
Commits
9fdb596
Prepare 0.4.359e667b6
Deprecate panickingTimeDelta
constructors2c1b0be
Tests: replaceTimeDelta::milliseconds
withtry_milliseconds
2bf3302
Tests: replaceTimeDelta::seconds
withtry_seconds
f93508f
Tests: replaceTimeDelta::minutes
withtry_minutes
9fc931a
Tests: replaceTimeDelta::hours
withtry_hours
9f23c08
Tests: replaceTimeDelta::days
withtry_days
e8f9b5e
Tests: replaceTimeDelta::weeks
withtry_weeks
51a1aa2
Tests: useDays
type when it is more appropriate thanTimeDelta
4251bd1
ReplaceTimeDelta::seconds
withtry_seconds
Updates
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.12Changelog
Sourced from getrandom's changelog.
Commits
f68a940
Release v0.2.12 (#389)5fe3c8e
Raise minimum supported Apple OS versions (#388)8aa4efb
Document platform support policy (#387)7249e6e
Improve robustness of the Hermit backend andsys_fill_exact
(#386)169944f
Fix custom backend for targets without atomics (#385)Updates
proc-macro-crate
from 1.3.1 to 3.1.0Release notes
Sourced from proc-macro-crate's releases.