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());
Added trait MutableValues for opt-in mutable access to set values.
2.2.5
Added optional borsh serialization support.
2.2.4
Added an insert_sorted method on IndexMap, IndexSet, and VacantEntry.
Avoid hashing for lookups in single-entry maps.
Limit preallocated memory in serde deserializers.
2.2.3
Added move_index and swap_indices methods to IndexedEntry,
OccupiedEntry, and RawOccupiedEntryMut, functioning like the existing
methods on IndexMap.
Added shift_insert methods on VacantEntry and RawVacantEntryMut, as
well as shift_insert_hashed_nocheck on the latter, to insert the new entry
at a particular index.
Added shift_insert methods on IndexMap and IndexSet to insert a new
entry at a particular index, or else move an existing entry there.
2.2.2
Added indexing methods to raw entries: RawEntryBuilder::from_hash_full,
RawEntryBuilder::index_from_hash, and RawEntryMut::index.
2.2.1
Corrected the signature of RawOccupiedEntryMut::into_key(self) -> &'a mut K,
This a breaking change from 2.2.0, but that version was published for less
than a day and has now been yanked.
2.2.0
The new IndexMap::get_index_entry method finds an entry by its index for
in-place manipulation.
The Keys iterator now implements Index<usize> for quick access to the
entry's key, compared to indexing the map to get the value.
The new IndexMap::splice and IndexSet::splice methods will drain the
given range as an iterator, and then replace that range with entries from
an input iterator.
The new trait RawEntryApiV1 offers opt-in access to a raw entry API for
IndexMap, corresponding to the unstable API on HashSet as of Rust 1.75.
... (truncated)
Commits
3f0fffb Merge pull request #323 from cuviper/mutable
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 cargo group with 9 updates in the / directory:
0.4.31
0.4.38
0.9.10
0.9.12
1.0.0
1.1.0
2.1.0
2.2.6
3.4.0
4.0.0
1.10.2
1.10.4
1.0.21
1.0.23
1.0.195
1.0.202
1.0.111
1.0.117
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
fastly
from 0.9.10 to 0.9.12Updates
http
from 1.0.0 to 1.1.0Release notes
Sourced from http's releases.
Changelog
Sourced from http's changelog.
Commits
3fe7267
v1.1.096dc52f
fix: HeaderName::from_lowercase allowing NUL bytes in some casescaa8b4f
feat: addHeaderMap::try_
methods to handle capacity overflow63102bc
chore(lib): remove importing prelude AsRef traitc03cc8b
chore(header): allow clippy::should_implement_trait rule for HeaderValue::fro...4785cdd
refactor(header): rename method to follow naming convention63e7d63
doc(header): add panics and safety section to documentb8ddea7
refactor(header): add comment and lint allowing to panic in const context wor...fe1932d
refactor(status): remove redundant static lifetime79f8da5
refactor(header): ownership is not needed to iterateUpdates
indexmap
from 2.1.0 to 2.2.6Changelog
Sourced from indexmap's changelog.
... (truncated)
Commits
3f0fffb
Merge pull request #323 from cuviper/mutable33c1a7c
Fixunused_imports
b76ff73
Fixclippy::multiple_bound_locations
0060546
Release 2.2.6210b027
Opt-in mutable access on IndexSet184fe4b
Merge pull request #320 from cuviper/release-2.2.55d7bd5e
Release 2.2.5c934ace
Merge pull request #313 from heliaxdev/heliax/borsh-supportb81a4d2
Use S for the BuildHasher parameter32793f1
Don't require BuildHasher in BorshSerializeUpdates
nodejs-semver
from 3.4.0 to 4.0.0Changelog
Sourced from nodejs-semver's changelog.
Commits
1ece541
chore: release4.0.0
922c258
chore: upgrademiette
to 7.2 (#7)3b156e4
chore: upgradewinnow
to 0.6 (#6)d14d4ad
ci: update trigger5040e99
ci: fuzzer3d95d74
chore: setup fuzzer7ee42e0
docs: update changelogUpdates
regex
from 1.10.2 to 1.10.4Changelog
Sourced from regex's changelog.
Commits
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 public0c09903
1.10.3653bb59
deps: bump regex-automata to 0.4.4e7b5401
regex-automata-0.4.4Updates
semver
from 1.0.21 to 1.0.23Release notes
Sourced from semver's releases.
Commits
69efd3c
Release 1.0.23451b419
Merge pull request #318 from dtolnay/checkcfg5b71485
Resolve unexpected_cfgs warningc520af7
Revert "Temporarily disable miri on doctests"73b5d9e
Merge pull request #313 from Saecki/patch-1e8d61de
chore: fix typo in safety commentd282d48
Explicitly install a Rust toolchain for cargo-outdated job6e6ba22
Temporarily disable miri on doctestsc8ad1bf
Release 1.0.22f76db8d
Resolve redundant import warningUpdates
serde
from 1.0.195 to 1.0.202Release notes
Sourced from serde's releases.
Commits
9e32a40
Release 1.0.20287f635e
Release serde_derive_internals 0.29.1d4b2dfb
Merge pull request #2743 from dtolnay/renameallrulesf6ab0bc
Provide public access to RenameAllRules in serde_derive_internals48cc2a6
Replace use of a syn From impl3202a68
Skip rerunning build script on library code changesb4f1bc1
Release 1.0.201029ab46
Merge pull request #2737 from dtolnay/checkcfg220ca0c
Resolve unexpected_cfgs warning20306f4
Fix cfg on test_systemtime_overflowUpdates
serde_json
from 1.0.111 to 1.0.117Release notes
Sourced from serde_json's releases.
Commits
0ae247c
Release 1.0.1174517c7a
PartialEq is not implemented between Value and 128-bit intsfdf99c7
Combine number PartialEq testsb4fc245
Merge pull request #1130 from serde-rs/checkcfg98f1a24
Resolve unexpected_cfgs warninga3f62bb
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"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