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.
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.
Many IndexMap and IndexSet methods have relaxed their type constraints,
e.g. removing K: Hash on methods that don't actually need to hash.
... (truncated)
Commits
184fe4b Merge pull request #320 from cuviper/release-2.2.5
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 8 updates:
0.4.31
0.4.35
0.9.10
0.9.11
1.0.0
1.1.0
2.1.0
2.2.5
1.10.2
1.10.3
1.0.21
1.0.22
1.0.195
1.0.197
1.0.111
1.0.114
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
fastly
from 0.9.10 to 0.9.11Updates
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.5Changelog
Sourced from indexmap's changelog.
... (truncated)
Commits
184fe4b
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 BorshSerializeb8b1f52
ci: reduce features on MSRV6ad3e42
Includeborsh
in CI workflowc610e14
Addborsh
serialization roundtrip tests0804a16
Implementborsh
serialization routinesae38b91
Addborsh
dep to Cargo manifestUpdates
regex
from 1.10.2 to 1.10.3Changelog
Sourced from regex's changelog.
Commits
0c09903
1.10.3653bb59
deps: bump regex-automata to 0.4.4e7b5401
regex-automata-0.4.41bc667d
changelog: 1.10.3fbd2537
safety: guard in Input::new against incorrect AsRef implementations027eebd
cargo: set 'default-features = false' for memchr and aho-corasickdc0a9d2
ci: small clean-upsa3d5975
doc: fix link in Index<&str> impl docs4f5992f
doc: tweakCaptures
documentation837fd85
regex-cli-0.2.0Updates
semver
from 1.0.21 to 1.0.22Release notes
Sourced from semver's releases.
Commits
c8ad1bf
Release 1.0.22f76db8d
Resolve redundant import warningf32b420
Ignore incompatible_msrv clippy lint for conditionally compiled codeUpdates
serde
from 1.0.195 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.111 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 ryuDependabot 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