2023-09-16 13:23:26 +02:00
|
|
|
# This file is automatically @generated by Cargo.
|
|
|
|
# It is not intended for manual editing.
|
|
|
|
version = 3
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "addr2line"
|
|
|
|
version = "0.21.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2023-09-16 13:27:52 +02:00
|
|
|
"gimli",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "adler"
|
|
|
|
version = "1.0.2"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "aho-corasick"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "1.1.1"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anes"
|
|
|
|
version = "0.1.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "anstream"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b1f58811cfac344940f1a400b6e6231ce35171f614f26439e80f8c1465c5cc0c"
|
|
|
|
dependencies = [
|
|
|
|
"anstyle",
|
|
|
|
"anstyle-parse",
|
|
|
|
"anstyle-query",
|
|
|
|
"anstyle-wincon",
|
|
|
|
"colorchoice",
|
|
|
|
"utf8parse",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle"
|
|
|
|
version = "1.0.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b84bf0a05bbb2a83e5eb6fa36bb6e87baa08193c35ff52bbf6b38d8af2890e46"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-parse"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333"
|
|
|
|
dependencies = [
|
|
|
|
"utf8parse",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-query"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b"
|
|
|
|
dependencies = [
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-wincon"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd"
|
|
|
|
dependencies = [
|
|
|
|
"anstyle",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "anyhow"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.0.75"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "async-channel"
|
|
|
|
version = "1.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"
|
|
|
|
dependencies = [
|
|
|
|
"concurrent-queue",
|
|
|
|
"event-listener",
|
|
|
|
"futures-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "async-lock"
|
|
|
|
version = "2.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b"
|
|
|
|
dependencies = [
|
|
|
|
"event-listener",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "async-task"
|
|
|
|
version = "4.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae"
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "async-trait"
|
|
|
|
version = "0.1.73"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-16 16:12:06 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "atomic-waker"
|
|
|
|
version = "1.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "autocfg"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "backtrace"
|
|
|
|
version = "0.3.69"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2023-09-16 13:27:52 +02:00
|
|
|
"addr2line",
|
|
|
|
"cc",
|
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"miniz_oxide",
|
|
|
|
"object",
|
|
|
|
"rustc-demangle",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
|
|
|
version = "0.13.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
|
|
|
version = "0.21.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "base64-url"
|
|
|
|
version = "1.4.13"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "67a99c239d0c7e77c85dddfa9cebce48704b3c49550fcd3b84dd637e4484899f"
|
|
|
|
dependencies = [
|
|
|
|
"base64 0.13.1",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "base64ct"
|
|
|
|
version = "1.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e6b4d9b1225d28d360ec6a231d65af1fd99a2a095154c8040689617290569c5c"
|
|
|
|
|
2023-09-24 10:48:41 +02:00
|
|
|
[[package]]
|
|
|
|
name = "basic-setup"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"crunch",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost",
|
2023-09-24 10:48:41 +02:00
|
|
|
"tokio",
|
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
|
|
|
version = "1.3.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
|
|
|
version = "2.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "blocking"
|
|
|
|
version = "1.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "77231a1c8f801696fc0123ec6150ce92cffb8e164a02afb9c8ddee0e9b65ad65"
|
|
|
|
dependencies = [
|
|
|
|
"async-channel",
|
|
|
|
"async-lock",
|
|
|
|
"async-task",
|
|
|
|
"atomic-waker",
|
|
|
|
"fastrand 1.9.0",
|
|
|
|
"futures-lite",
|
|
|
|
"log",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bumpalo"
|
|
|
|
version = "3.14.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "byteorder"
|
|
|
|
version = "1.4.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bytes"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.5.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "capnp"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.18.1"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "9eddbd729bd9742aa22d29e871a42ffea7f216a4ddbfdaf09ea88150ef2e7f76"
|
|
|
|
dependencies = [
|
|
|
|
"embedded-io",
|
|
|
|
]
|
2023-09-17 00:31:43 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "capnpc"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.18.0"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "5067f3c8ee94d993d03150153e9a57a6ff330127b1c1ad76475051e1cef79c2d"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"capnp",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cast"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cc"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.0.83"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2023-09-16 13:27:52 +02:00
|
|
|
"libc",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "cfg-if"
|
2023-09-16 13:23:26 +02:00
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ciborium"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "effd91f6c78e5a4ace8a5d3c0b6bfaec9e2baaef55f3efc00e45fb2e477ee926"
|
|
|
|
dependencies = [
|
|
|
|
"ciborium-io",
|
|
|
|
"ciborium-ll",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ciborium-io"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cdf919175532b369853f5d5e20b26b43112613fd6fe7aee757e35f7a44642656"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ciborium-ll"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "defaa24ecc093c77630e6c15e17c51f5e187bf35ee514f4e2d67baaa96dae22b"
|
|
|
|
dependencies = [
|
|
|
|
"ciborium-io",
|
|
|
|
"half",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "clap"
|
|
|
|
version = "4.4.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b1d7b8d5ec32af0fadc644bf1fd509a688c2103b185644bb1e29d164e0703136"
|
|
|
|
dependencies = [
|
|
|
|
"clap_builder",
|
|
|
|
"clap_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clap_builder"
|
|
|
|
version = "4.4.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5179bb514e4d7c2051749d8fcefa2ed6d06a9f4e6d69faf3805f5d80b8cf8d56"
|
|
|
|
dependencies = [
|
|
|
|
"anstream",
|
|
|
|
"anstyle",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"clap_lex",
|
2023-09-24 12:18:29 +02:00
|
|
|
"strsim",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clap_derive"
|
|
|
|
version = "4.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0862016ff20d69b84ef8247369fabf5c008a7417002411897d40ee1f4532b873"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"heck",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clap_lex"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "colorchoice"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "concurrent-queue"
|
|
|
|
version = "2.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c"
|
|
|
|
dependencies = [
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "const-oid"
|
|
|
|
version = "0.6.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9d6f2aa4d0537bcc1c74df8755072bd31c1ef1a3a1b85a68e8404a8c353b7b8b"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "core-foundation"
|
|
|
|
version = "0.9.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
|
|
|
|
dependencies = [
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "core-foundation-sys"
|
|
|
|
version = "0.8.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cpufeatures"
|
|
|
|
version = "0.2.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "criterion"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.5.1"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"anes",
|
|
|
|
"cast",
|
|
|
|
"ciborium",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"clap",
|
2023-09-17 00:31:43 +02:00
|
|
|
"criterion-plot",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"is-terminal",
|
2023-09-19 08:31:13 +02:00
|
|
|
"itertools 0.10.5",
|
2023-09-17 00:31:43 +02:00
|
|
|
"num-traits",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"once_cell",
|
2023-09-17 00:31:43 +02:00
|
|
|
"oorandom",
|
|
|
|
"plotters",
|
|
|
|
"rayon",
|
|
|
|
"regex",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"tinytemplate",
|
|
|
|
"walkdir",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "criterion-plot"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
|
|
|
|
dependencies = [
|
|
|
|
"cast",
|
2023-09-19 08:31:13 +02:00
|
|
|
"itertools 0.10.5",
|
2023-09-17 00:31:43 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-channel"
|
|
|
|
version = "0.5.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-deque"
|
|
|
|
version = "0.8.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"crossbeam-epoch",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-epoch"
|
|
|
|
version = "0.9.15"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"cfg-if",
|
|
|
|
"crossbeam-utils",
|
|
|
|
"memoffset",
|
|
|
|
"scopeguard",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
|
|
|
version = "0.8.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crossterm"
|
|
|
|
version = "0.25.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags 1.3.2",
|
|
|
|
"crossterm_winapi",
|
|
|
|
"libc",
|
|
|
|
"mio",
|
|
|
|
"parking_lot",
|
|
|
|
"signal-hook",
|
|
|
|
"signal-hook-mio",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossterm_winapi"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
|
|
|
dependencies = [
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
2023-09-16 16:12:06 +02:00
|
|
|
"async-trait",
|
2023-09-22 21:31:32 +02:00
|
|
|
"crunch-envelope",
|
2023-09-23 18:21:39 +02:00
|
|
|
"crunch-in-memory",
|
2023-09-24 00:44:18 +02:00
|
|
|
"crunch-nats",
|
2023-09-23 18:21:39 +02:00
|
|
|
"crunch-traits",
|
2023-09-22 21:31:32 +02:00
|
|
|
"futures",
|
2023-09-16 16:12:06 +02:00
|
|
|
"thiserror",
|
2023-09-16 13:23:26 +02:00
|
|
|
"tokio",
|
2023-09-22 21:31:32 +02:00
|
|
|
"tokio-stream",
|
2023-09-16 13:23:26 +02:00
|
|
|
"tracing",
|
2023-09-16 16:12:06 +02:00
|
|
|
"tracing-subscriber",
|
2023-09-22 21:31:32 +02:00
|
|
|
"uuid",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-cli"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"clap",
|
2023-09-24 16:27:06 +02:00
|
|
|
"crunch-codegen",
|
2023-09-24 13:51:35 +02:00
|
|
|
"crunch-file",
|
2023-09-25 21:03:58 +02:00
|
|
|
"inquire",
|
|
|
|
"regex",
|
2023-09-24 12:18:29 +02:00
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
|
|
|
]
|
|
|
|
|
2023-09-24 14:02:01 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-codegen"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
2023-09-24 14:09:24 +02:00
|
|
|
"crunch-file",
|
2023-09-24 14:02:01 +02:00
|
|
|
"crunch-traits",
|
2023-09-24 16:27:06 +02:00
|
|
|
"genco",
|
|
|
|
"pretty_assertions",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost",
|
2023-09-24 14:09:24 +02:00
|
|
|
"prost-build",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost-types",
|
2023-09-24 21:09:40 +02:00
|
|
|
"regex",
|
2023-09-24 16:27:06 +02:00
|
|
|
"tempfile",
|
2023-09-24 14:02:01 +02:00
|
|
|
"tokio",
|
|
|
|
"tracing",
|
2023-09-24 16:27:06 +02:00
|
|
|
"walkdir",
|
2023-09-24 14:02:01 +02:00
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-envelope"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2023-09-24 00:44:18 +02:00
|
|
|
"base64 0.21.4",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
2023-09-17 00:31:43 +02:00
|
|
|
"capnp",
|
|
|
|
"capnpc",
|
|
|
|
"criterion",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost",
|
2023-09-19 08:31:13 +02:00
|
|
|
"prost-build",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost-types",
|
2023-09-17 00:31:43 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"thiserror",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-file"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
|
|
|
"crunch-traits",
|
|
|
|
"pretty_assertions",
|
|
|
|
"serde",
|
|
|
|
"tokio",
|
|
|
|
"toml_edit",
|
2023-09-24 13:51:35 +02:00
|
|
|
"tracing",
|
2023-09-24 12:18:29 +02:00
|
|
|
]
|
|
|
|
|
2023-09-23 18:21:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-in-memory"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
|
|
|
"crunch-traits",
|
2023-09-23 22:38:12 +02:00
|
|
|
"futures",
|
2023-09-23 18:21:39 +02:00
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
2023-09-23 22:38:12 +02:00
|
|
|
"tokio-stream",
|
2023-09-23 18:21:39 +02:00
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-nats"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
|
|
|
"crunch-traits",
|
|
|
|
"futures",
|
|
|
|
"nats",
|
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tokio-stream",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2023-09-23 18:21:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-traits"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
2023-09-23 22:38:12 +02:00
|
|
|
"futures",
|
2023-09-24 22:09:36 +02:00
|
|
|
"prost",
|
2023-09-23 18:21:39 +02:00
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"uuid",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "curve25519-dalek"
|
|
|
|
version = "3.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
"digest",
|
|
|
|
"rand_core 0.5.1",
|
|
|
|
"subtle",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "data-encoding"
|
|
|
|
version = "2.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "der"
|
|
|
|
version = "0.4.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "79b71cca7d95d7681a4b3b9cdf63c8dbc3730d0584c2c74e31416d64a90493f4"
|
|
|
|
dependencies = [
|
|
|
|
"const-oid",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "deranged"
|
|
|
|
version = "0.3.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "diff"
|
|
|
|
version = "0.1.13"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "dyn-clone"
|
|
|
|
version = "1.0.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ed25519"
|
|
|
|
version = "1.5.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7"
|
|
|
|
dependencies = [
|
|
|
|
"signature",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ed25519-dalek"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d"
|
|
|
|
dependencies = [
|
|
|
|
"curve25519-dalek",
|
|
|
|
"ed25519",
|
|
|
|
"sha2",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "either"
|
|
|
|
version = "1.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
|
|
|
|
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
[[package]]
|
|
|
|
name = "embedded-io"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "658bbadc628dc286b9ae02f0cb0f5411c056eb7487b72f0083203f115de94060"
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "equivalent"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "errno"
|
|
|
|
version = "0.3.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd"
|
|
|
|
dependencies = [
|
|
|
|
"errno-dragonfly",
|
|
|
|
"libc",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "errno-dragonfly"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "event-listener"
|
|
|
|
version = "2.5.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fastrand"
|
|
|
|
version = "1.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be"
|
|
|
|
dependencies = [
|
|
|
|
"instant",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fastrand"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fixedbitset"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.4.2"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "form_urlencoded"
|
|
|
|
version = "1.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652"
|
|
|
|
dependencies = [
|
|
|
|
"percent-encoding",
|
|
|
|
]
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futures"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40"
|
|
|
|
dependencies = [
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-executor",
|
|
|
|
"futures-io",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-task",
|
|
|
|
"futures-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-channel"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-core"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-executor"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-task",
|
|
|
|
"futures-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-io"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futures-lite"
|
|
|
|
version = "1.13.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce"
|
|
|
|
dependencies = [
|
|
|
|
"fastrand 1.9.0",
|
|
|
|
"futures-core",
|
|
|
|
"futures-io",
|
|
|
|
"memchr",
|
|
|
|
"parking",
|
|
|
|
"pin-project-lite",
|
|
|
|
"waker-fn",
|
|
|
|
]
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futures-macro"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-22 21:31:32 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-sink"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-task"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-util"
|
|
|
|
version = "0.3.28"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
|
|
|
|
dependencies = [
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-io",
|
|
|
|
"futures-macro",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-task",
|
|
|
|
"memchr",
|
|
|
|
"pin-project-lite",
|
|
|
|
"pin-utils",
|
|
|
|
"slab",
|
|
|
|
]
|
|
|
|
|
2023-09-24 16:27:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "genco"
|
2023-09-25 22:40:02 +02:00
|
|
|
version = "0.17.6"
|
2023-09-24 16:27:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-25 22:40:02 +02:00
|
|
|
checksum = "3597f99dbe04460775cb349299b9532123980b17d89faeaa2da42658b7767787"
|
2023-09-24 16:27:06 +02:00
|
|
|
dependencies = [
|
|
|
|
"genco-macros",
|
|
|
|
"relative-path",
|
|
|
|
"smallvec",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "genco-macros"
|
2023-09-25 22:40:02 +02:00
|
|
|
version = "0.17.6"
|
2023-09-24 16:27:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-25 22:40:02 +02:00
|
|
|
checksum = "b029ca4c73c30f813e0e92754515585ccbede98014fb26644cc7488a3833706a"
|
2023-09-24 16:27:06 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 16:27:06 +02:00
|
|
|
"syn 1.0.109",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "generic-array"
|
|
|
|
version = "0.14.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
|
|
dependencies = [
|
|
|
|
"typenum",
|
|
|
|
"version_check",
|
|
|
|
]
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
|
|
|
version = "0.2.10"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"wasi",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "gimli"
|
|
|
|
version = "0.28.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "half"
|
|
|
|
version = "1.8.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7"
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
|
|
|
version = "0.14.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hermit-abi"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.3.3"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
|
2023-09-17 00:31:43 +02:00
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
name = "home"
|
|
|
|
version = "0.5.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb"
|
|
|
|
dependencies = [
|
|
|
|
"windows-sys",
|
|
|
|
]
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
|
|
|
|
dependencies = [
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "indexmap"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
|
|
|
|
dependencies = [
|
|
|
|
"equivalent",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"hashbrown",
|
2023-09-17 00:31:43 +02:00
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "inquire"
|
|
|
|
version = "0.6.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c33e7c1ddeb15c9abcbfef6029d8e29f69b52b6d6c891031b88ed91b5065803b"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags 1.3.2",
|
|
|
|
"crossterm",
|
|
|
|
"dyn-clone",
|
|
|
|
"lazy_static",
|
|
|
|
"newline-converter",
|
|
|
|
"thiserror",
|
|
|
|
"unicode-segmentation",
|
|
|
|
"unicode-width",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "instant"
|
|
|
|
version = "0.1.12"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
name = "is-terminal"
|
|
|
|
version = "0.4.9"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"hermit-abi",
|
|
|
|
"rustix",
|
|
|
|
"windows-sys",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
|
|
|
version = "0.10.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
|
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57"
|
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "itoa"
|
|
|
|
version = "1.0.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "js-sys"
|
|
|
|
version = "0.3.64"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
|
|
|
|
dependencies = [
|
|
|
|
"wasm-bindgen",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "json"
|
|
|
|
version = "0.12.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd"
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "lazy_static"
|
|
|
|
version = "1.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libc"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.2.148"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "linux-raw-sys"
|
|
|
|
version = "0.4.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "lock_api"
|
|
|
|
version = "0.4.10"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"scopeguard",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "log"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.4.20"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "memchr"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "2.6.3"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "8f232d6ef707e1956a43342693d2a31e72989554d58299d7a88738cc95b0d35c"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "memoffset"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "miniz_oxide"
|
|
|
|
version = "0.7.1"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
|
|
|
|
dependencies = [
|
|
|
|
"adler",
|
|
|
|
]
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mio"
|
|
|
|
version = "0.8.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2023-09-25 21:03:58 +02:00
|
|
|
"log",
|
2023-09-16 13:23:26 +02:00
|
|
|
"wasi",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "multimap"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.8.3"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nats"
|
|
|
|
version = "0.24.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2eebb39ba0555bcf232817d42ed3346499f14f6f8d4de1c0ca4517bda99c1a7b"
|
|
|
|
dependencies = [
|
|
|
|
"base64 0.13.1",
|
|
|
|
"base64-url",
|
|
|
|
"blocking",
|
|
|
|
"crossbeam-channel",
|
|
|
|
"fastrand 1.9.0",
|
|
|
|
"itoa",
|
|
|
|
"json",
|
|
|
|
"lazy_static",
|
|
|
|
"libc",
|
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"nkeys",
|
|
|
|
"nuid",
|
|
|
|
"once_cell",
|
|
|
|
"parking_lot",
|
|
|
|
"regex",
|
|
|
|
"ring",
|
|
|
|
"rustls",
|
|
|
|
"rustls-native-certs",
|
|
|
|
"rustls-pemfile",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"serde_nanos",
|
|
|
|
"serde_repr",
|
|
|
|
"time",
|
|
|
|
"url",
|
|
|
|
"webpki",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "newline-converter"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1f71d09d5c87634207f894c6b31b6a2b2c64ea3bdcf71bd5599fdbbe1600c00f"
|
|
|
|
dependencies = [
|
|
|
|
"unicode-segmentation",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nkeys"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0e66a7cd1358277b2a6f77078e70aea7315ff2f20db969cc61153103ec162594"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
"data-encoding",
|
|
|
|
"ed25519-dalek",
|
|
|
|
"getrandom",
|
|
|
|
"log",
|
|
|
|
"rand",
|
|
|
|
"signatory",
|
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nu-ansi-term"
|
|
|
|
version = "0.46.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
|
|
|
|
dependencies = [
|
|
|
|
"overload",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nuid"
|
|
|
|
version = "0.3.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "20c1bb65186718d348306bf1afdeb20d9ab45b2ab80fb793c0fdcf59ffbb4f38"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
"rand",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "num-traits"
|
|
|
|
version = "0.2.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "num_cpus"
|
|
|
|
version = "1.16.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"hermit-abi",
|
2023-09-16 13:27:52 +02:00
|
|
|
"libc",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "object"
|
|
|
|
version = "0.32.1"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2023-09-16 13:27:52 +02:00
|
|
|
"memchr",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "once_cell"
|
|
|
|
version = "1.18.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "oorandom"
|
|
|
|
version = "11.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "openssl-probe"
|
|
|
|
version = "0.1.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "overload"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "parking"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
|
|
|
dependencies = [
|
|
|
|
"lock_api",
|
|
|
|
"parking_lot_core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
|
|
|
version = "0.9.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"smallvec",
|
|
|
|
"windows-targets",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pem-rfc7468"
|
|
|
|
version = "0.2.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "84e93a3b1cc0510b03020f33f21e62acdde3dcaef432edc95bea377fbd4c2cd4"
|
|
|
|
dependencies = [
|
|
|
|
"base64ct",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
|
|
|
version = "2.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "petgraph"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.6.4"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
|
|
|
"fixedbitset",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"indexmap",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pin-project-lite"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.2.13"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pin-utils"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pkcs8"
|
|
|
|
version = "0.7.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee3ef9b64d26bad0536099c816c6734379e45bbd5f14798def6809e5cc350447"
|
|
|
|
dependencies = [
|
|
|
|
"der",
|
|
|
|
"pem-rfc7468",
|
|
|
|
"spki",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "plotters"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d2c224ba00d7cadd4d5c660deaf2098e5e80e07846537c51f9cfa4be50c1fd45"
|
|
|
|
dependencies = [
|
|
|
|
"num-traits",
|
|
|
|
"plotters-backend",
|
|
|
|
"plotters-svg",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"web-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "plotters-backend"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9e76628b4d3a7581389a35d5b6e2139607ad7c75b17aed325f210aa91f4a9609"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "plotters-svg"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "38f6d39893cca0701371e3c27294f09797214b86f1fb951b89ade8ec04e2abab"
|
|
|
|
dependencies = [
|
|
|
|
"plotters-backend",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ppv-lite86"
|
|
|
|
version = "0.2.17"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pretty_assertions"
|
|
|
|
version = "1.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66"
|
|
|
|
dependencies = [
|
|
|
|
"diff",
|
|
|
|
"yansi",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
name = "prettyplease"
|
|
|
|
version = "0.2.15"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"syn 2.0.37",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro2"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.0.67"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
|
|
|
"unicode-ident",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "prost"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f4fdd22f3b9c31b53c060df4a0613a1c7f062d4115a2b984dd15b1858f7e340d"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
|
|
|
"prost-derive",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-build"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "0.12.1"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "8bdf592881d821b83d471f8af290226c8d51402259e9bb5be7f9f8bdebbb11ac"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
|
|
|
"heck",
|
|
|
|
"itertools 0.11.0",
|
2023-09-19 08:31:13 +02:00
|
|
|
"log",
|
|
|
|
"multimap",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"once_cell",
|
2023-09-19 08:31:13 +02:00
|
|
|
"petgraph",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prettyplease",
|
|
|
|
"prost",
|
|
|
|
"prost-types",
|
|
|
|
"regex",
|
|
|
|
"syn 2.0.37",
|
2023-09-19 08:31:13 +02:00
|
|
|
"tempfile",
|
|
|
|
"which",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-derive"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "265baba7fabd416cf5078179f7d2cbeca4ce7a9041111900675ea7c4cb8a4c32"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
2023-09-24 12:18:29 +02:00
|
|
|
"itertools 0.11.0",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-types"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e081b29f63d83a4bc75cfc9f3fe424f9156cf92d8a4f0c9407cce9a1b67327cf"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"prost",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "quote"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.0.33"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rand"
|
|
|
|
version = "0.8.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"rand_chacha",
|
|
|
|
"rand_core 0.6.4",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
|
|
|
version = "0.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
|
|
|
dependencies = [
|
|
|
|
"ppv-lite86",
|
|
|
|
"rand_core 0.6.4",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
|
|
|
version = "0.6.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
|
|
dependencies = [
|
|
|
|
"getrandom",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rayon"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "1.8.0"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
"rayon-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rayon-core"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "1.12.0"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"crossbeam-deque",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "redox_syscall"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
|
|
|
|
dependencies = [
|
2023-09-19 08:31:13 +02:00
|
|
|
"bitflags 1.3.2",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "regex"
|
|
|
|
version = "1.9.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "697061221ea1b4a94a624f67d0ae2bfe4e22b8a17b6a192afb11046542cc8c47"
|
|
|
|
dependencies = [
|
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
|
|
|
"regex-automata",
|
|
|
|
"regex-syntax",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "regex-automata"
|
|
|
|
version = "0.3.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c2f401f4955220693b56f8ec66ee9c78abffd8d1c4f23dc41a23839eb88f0795"
|
|
|
|
dependencies = [
|
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
|
|
|
"regex-syntax",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "regex-syntax"
|
|
|
|
version = "0.7.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da"
|
|
|
|
|
2023-09-24 16:27:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "relative-path"
|
|
|
|
version = "1.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ring"
|
|
|
|
version = "0.16.20"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"once_cell",
|
|
|
|
"spin",
|
|
|
|
"untrusted",
|
|
|
|
"web-sys",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
2023-09-16 13:27:52 +02:00
|
|
|
name = "rustc-demangle"
|
|
|
|
version = "0.1.23"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustix"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.38.14"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "747c788e9ce8e92b12cd485c49ddf90723550b654b32508f979b71a7b1ecda4f"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
|
|
|
"bitflags 2.4.0",
|
|
|
|
"errno",
|
|
|
|
"libc",
|
|
|
|
"linux-raw-sys",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
|
|
|
version = "0.19.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7"
|
|
|
|
dependencies = [
|
|
|
|
"base64 0.13.1",
|
|
|
|
"log",
|
|
|
|
"ring",
|
|
|
|
"sct",
|
|
|
|
"webpki",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls-native-certs"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092"
|
|
|
|
dependencies = [
|
|
|
|
"openssl-probe",
|
|
|
|
"rustls",
|
|
|
|
"schannel",
|
|
|
|
"security-framework",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls-pemfile"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9"
|
|
|
|
dependencies = [
|
|
|
|
"base64 0.13.1",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ryu"
|
|
|
|
version = "1.0.15"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "same-file"
|
|
|
|
version = "1.0.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
|
|
|
dependencies = [
|
|
|
|
"winapi-util",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "schannel"
|
|
|
|
version = "0.1.22"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88"
|
|
|
|
dependencies = [
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "scopeguard"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.2.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sct"
|
|
|
|
version = "0.6.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce"
|
|
|
|
dependencies = [
|
|
|
|
"ring",
|
|
|
|
"untrusted",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "security-framework"
|
|
|
|
version = "2.9.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags 1.3.2",
|
|
|
|
"core-foundation",
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
"security-framework-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "security-framework-sys"
|
|
|
|
version = "2.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a"
|
|
|
|
dependencies = [
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde"
|
|
|
|
version = "1.0.188"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e"
|
|
|
|
dependencies = [
|
|
|
|
"serde_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_derive"
|
|
|
|
version = "1.0.188"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-17 00:31:43 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_json"
|
|
|
|
version = "1.0.107"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65"
|
|
|
|
dependencies = [
|
|
|
|
"itoa",
|
|
|
|
"ryu",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde_nanos"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ae801b7733ca8d6a2b580debe99f67f36826a0f5b8a36055dc6bc40f8d6bc71"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_repr"
|
|
|
|
version = "0.1.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_spanned"
|
|
|
|
version = "0.6.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sha2"
|
|
|
|
version = "0.9.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800"
|
|
|
|
dependencies = [
|
|
|
|
"block-buffer",
|
|
|
|
"cfg-if",
|
|
|
|
"cpufeatures",
|
|
|
|
"digest",
|
|
|
|
"opaque-debug",
|
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sharded-slab"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "signal-hook"
|
|
|
|
version = "0.3.17"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"signal-hook-registry",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "signal-hook-mio"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"mio",
|
|
|
|
"signal-hook",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "signal-hook-registry"
|
|
|
|
version = "1.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "signatory"
|
|
|
|
version = "0.23.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5dfecc059e81632eef1dd9b79e22fc28b8fe69b30d3357512a77a0ad8ee3c782"
|
|
|
|
dependencies = [
|
|
|
|
"pkcs8",
|
|
|
|
"rand_core 0.6.4",
|
|
|
|
"signature",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "signature"
|
|
|
|
version = "1.6.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c"
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "slab"
|
|
|
|
version = "0.4.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "1.11.1"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.5.4"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2023-09-16 13:27:52 +02:00
|
|
|
"windows-sys",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "spin"
|
|
|
|
version = "0.5.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "spki"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5c01a0c15da1b0b0e1494112e7af814a678fec9bd157881b49beac661e9b6f32"
|
|
|
|
dependencies = [
|
|
|
|
"der",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "strsim"
|
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "subtle"
|
|
|
|
version = "2.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
|
|
|
|
|
2023-09-24 16:27:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
|
|
|
version = "1.0.109"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 16:27:06 +02:00
|
|
|
"unicode-ident",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "2.0.37"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-16 13:23:26 +02:00
|
|
|
"unicode-ident",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tempfile"
|
|
|
|
version = "3.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2023-09-24 00:44:18 +02:00
|
|
|
"fastrand 2.0.0",
|
2023-09-19 08:31:13 +02:00
|
|
|
"redox_syscall",
|
|
|
|
"rustix",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "thiserror"
|
|
|
|
version = "1.0.48"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9d6d7a740b8a666a7e828dd00da9c0dc290dff53154ea77ac109281de90589b7"
|
|
|
|
dependencies = [
|
|
|
|
"thiserror-impl",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror-impl"
|
|
|
|
version = "1.0.48"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "49922ecae66cc8a249b77e68d1d0623c1b2c514f0060c27cdc68bd62a1219d35"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-16 16:12:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thread_local"
|
|
|
|
version = "1.1.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"once_cell",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "time"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.3.29"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"deranged",
|
|
|
|
"itoa",
|
|
|
|
"serde",
|
|
|
|
"time-core",
|
|
|
|
"time-macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "time-core"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.1.2"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "time-macros"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.2.15"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"time-core",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tinytemplate"
|
|
|
|
version = "1.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tinyvec"
|
|
|
|
version = "1.6.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
|
|
|
dependencies = [
|
|
|
|
"tinyvec_macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tinyvec_macros"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tokio"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.32.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2023-09-16 13:27:52 +02:00
|
|
|
"backtrace",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
2023-09-16 13:23:26 +02:00
|
|
|
"libc",
|
|
|
|
"mio",
|
|
|
|
"num_cpus",
|
|
|
|
"parking_lot",
|
|
|
|
"pin-project-lite",
|
|
|
|
"signal-hook-registry",
|
|
|
|
"socket2",
|
|
|
|
"tokio-macros",
|
|
|
|
"windows-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-macros"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-stream"
|
|
|
|
version = "0.1.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"pin-project-lite",
|
|
|
|
"tokio",
|
2023-09-23 22:38:12 +02:00
|
|
|
"tokio-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-util"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.7.9"
|
2023-09-23 22:38:12 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "1d68074620f57a0b21594d9735eb2e98ab38b17f80d3fcb189fca266771ca60d"
|
2023-09-23 22:38:12 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"bytes",
|
2023-09-23 22:38:12 +02:00
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"pin-project-lite",
|
|
|
|
"tokio",
|
2023-09-22 21:31:32 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "toml_datetime"
|
|
|
|
version = "0.6.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "toml_edit"
|
|
|
|
version = "0.20.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ff63e60a958cefbb518ae1fd6566af80d9d4be430a33f3723dfc47d1d411d95"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"indexmap",
|
2023-09-24 12:18:29 +02:00
|
|
|
"serde",
|
|
|
|
"serde_spanned",
|
|
|
|
"toml_datetime",
|
|
|
|
"winnow",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tracing"
|
|
|
|
version = "0.1.37"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"log",
|
|
|
|
"pin-project-lite",
|
|
|
|
"tracing-attributes",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-attributes"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.1.26"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-core"
|
|
|
|
version = "0.1.31"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a"
|
|
|
|
dependencies = [
|
|
|
|
"once_cell",
|
2023-09-16 16:12:06 +02:00
|
|
|
"valuable",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-log"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
"log",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-subscriber"
|
|
|
|
version = "0.3.17"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77"
|
|
|
|
dependencies = [
|
|
|
|
"nu-ansi-term",
|
|
|
|
"sharded-slab",
|
|
|
|
"smallvec",
|
|
|
|
"thread_local",
|
|
|
|
"tracing-core",
|
|
|
|
"tracing-log",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "typenum"
|
|
|
|
version = "1.17.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-bidi"
|
|
|
|
version = "0.3.13"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-ident"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "1.0.12"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-normalization"
|
|
|
|
version = "0.1.22"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
|
|
|
|
dependencies = [
|
|
|
|
"tinyvec",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-segmentation"
|
|
|
|
version = "1.10.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-width"
|
|
|
|
version = "0.1.11"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "untrusted"
|
|
|
|
version = "0.7.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "url"
|
|
|
|
version = "2.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5"
|
|
|
|
dependencies = [
|
|
|
|
"form_urlencoded",
|
|
|
|
"idna",
|
|
|
|
"percent-encoding",
|
|
|
|
]
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "utf8parse"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "uuid"
|
|
|
|
version = "1.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
|
|
|
|
dependencies = [
|
|
|
|
"getrandom",
|
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "valuable"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "version_check"
|
|
|
|
version = "0.9.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "waker-fn"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "walkdir"
|
|
|
|
version = "2.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee"
|
|
|
|
dependencies = [
|
|
|
|
"same-file",
|
|
|
|
"winapi-util",
|
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "wasi"
|
|
|
|
version = "0.11.0+wasi-snapshot-preview1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen"
|
|
|
|
version = "0.2.87"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"wasm-bindgen-macro",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-backend"
|
|
|
|
version = "0.2.87"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
|
|
|
|
dependencies = [
|
|
|
|
"bumpalo",
|
|
|
|
"log",
|
|
|
|
"once_cell",
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-17 00:31:43 +02:00
|
|
|
"wasm-bindgen-shared",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-macro"
|
|
|
|
version = "0.2.87"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"quote",
|
2023-09-17 00:31:43 +02:00
|
|
|
"wasm-bindgen-macro-support",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-macro-support"
|
|
|
|
version = "0.2.87"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-17 00:31:43 +02:00
|
|
|
"wasm-bindgen-backend",
|
|
|
|
"wasm-bindgen-shared",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-shared"
|
|
|
|
version = "0.2.87"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "web-sys"
|
|
|
|
version = "0.3.64"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b"
|
|
|
|
dependencies = [
|
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "webpki"
|
|
|
|
version = "0.21.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea"
|
|
|
|
dependencies = [
|
|
|
|
"ring",
|
|
|
|
"untrusted",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "which"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
version = "4.4.2"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"either",
|
|
|
|
"home",
|
|
|
|
"once_cell",
|
|
|
|
"rustix",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
2023-09-16 16:12:06 +02:00
|
|
|
name = "winapi"
|
|
|
|
version = "0.3.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
|
|
dependencies = [
|
|
|
|
"winapi-i686-pc-windows-gnu",
|
|
|
|
"winapi-x86_64-pc-windows-gnu",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "winapi-i686-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-util"
|
2023-09-24 12:18:29 +02:00
|
|
|
version = "0.1.6"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-24 12:18:29 +02:00
|
|
|
checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
|
|
|
|
|
|
[[package]]
|
2023-09-16 13:23:26 +02:00
|
|
|
name = "windows-sys"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
|
|
|
dependencies = [
|
|
|
|
"windows-targets",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows-targets"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
|
|
|
"windows_aarch64_gnullvm",
|
|
|
|
"windows_aarch64_msvc",
|
|
|
|
"windows_i686_gnu",
|
|
|
|
"windows_i686_msvc",
|
|
|
|
"windows_x86_64_gnu",
|
|
|
|
"windows_x86_64_gnullvm",
|
|
|
|
"windows_x86_64_msvc",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_gnullvm"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_msvc"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnu"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_msvc"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnu"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnullvm"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_msvc"
|
2023-09-16 13:27:52 +02:00
|
|
|
version = "0.48.5"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-16 13:27:52 +02:00
|
|
|
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "winnow"
|
|
|
|
version = "0.5.15"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7c2e3184b9c4e92ad5167ca73039d0c42476302ab603e2fec4487511f38ccefc"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "yansi"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "zeroize"
|
|
|
|
version = "1.6.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9"
|
|
|
|
dependencies = [
|
|
|
|
"zeroize_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "zeroize_derive"
|
|
|
|
version = "1.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
|
|
|
|
dependencies = [
|
chore(deps): update all dependencies (#2)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anyhow](https://github.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.71` -> `1.0.75` |
| [bytes](https://github.com/tokio-rs/bytes) | workspace.dependencies | major | `0.4` -> `1.5` |
| [capnp](https://github.com/capnproto/capnproto-rust) | dependencies | minor | `0.17.2` -> `0.18.1` |
| [capnpc](https://github.com/capnproto/capnproto-rust) | build-dependencies | minor | `0.17.2` -> `0.18.0` |
| [criterion](https://bheisler.github.io/criterion.rs/book/index.html) ([source](https://github.com/bheisler/criterion.rs)) | dev-dependencies | minor | `0.4` -> `0.5` |
| [prost-build](https://github.com/tokio-rs/prost) | build-dependencies | minor | `0.5` -> `0.12` |
| [prost-build](https://github.com/tokio-rs/prost) | workspace.dependencies | minor | `0.5` -> `0.12` |
| [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.88` -> `1.0.188` |
---
### Release Notes
<details>
<summary>dtolnay/anyhow</summary>
### [`v1.0.75`](https://github.com/dtolnay/anyhow/releases/tag/1.0.75)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)
- Partially work around rust-analyzer bug (https://github.com/rust-lang/rust-analyzer/issues/9911)
### [`v1.0.74`](https://github.com/dtolnay/anyhow/releases/tag/1.0.74)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.73...1.0.74)
- Add bootstrap workaround to allow rustc to depend on anyhow ([#​320](https://github.com/dtolnay/anyhow/issues/320), thanks [@​RalfJung](https://github.com/RalfJung))
### [`v1.0.73`](https://github.com/dtolnay/anyhow/releases/tag/1.0.73)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.73)
- Update backtrace support to nightly's new Error::provide API (https://github.com/rust-lang/rust/pull/113464, [#​319](https://github.com/dtolnay/anyhow/issues/319))
### [`v1.0.72`](https://github.com/dtolnay/anyhow/releases/tag/1.0.72)
[Compare Source](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)
- Documentation improvements
</details>
<details>
<summary>tokio-rs/bytes</summary>
### [`v1.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​150-September-7-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0)
##### Added
- Add `UninitSlice::{new,uninit}` ([#​598](https://github.com/tokio-rs/bytes/issues/598), [#​599](https://github.com/tokio-rs/bytes/issues/599))
- Implement `BufMut` for `&mut [MaybeUninit<u8>]` ([#​597](https://github.com/tokio-rs/bytes/issues/597))
##### Changed
- Mark `BytesMut::extend_from_slice` as inline ([#​595](https://github.com/tokio-rs/bytes/issues/595))
### [`v1.4.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​140-January-31-2023)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)
##### Added
- Make `IntoIter` constructor public ([#​581](https://github.com/tokio-rs/bytes/issues/581))
##### Fixed
- Avoid large reallocations when freezing `BytesMut` ([#​592](https://github.com/tokio-rs/bytes/issues/592))
##### Documented
- Document which functions require `std` ([#​591](https://github.com/tokio-rs/bytes/issues/591))
- Fix duplicate "the the" typos ([#​585](https://github.com/tokio-rs/bytes/issues/585))
### [`v1.3.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​130-November-20-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.1...v1.3.0)
##### Added
- Rename and expose `BytesMut::spare_capacity_mut` ([#​572](https://github.com/tokio-rs/bytes/issues/572))
- Implement native-endian get and put functions for `Buf` and `BufMut` ([#​576](https://github.com/tokio-rs/bytes/issues/576))
##### Fixed
- Don't have important data in unused capacity when calling reserve ([#​563](https://github.com/tokio-rs/bytes/issues/563))
##### Documented
- `Bytes::new` etc should return `Self` not `Bytes` ([#​568](https://github.com/tokio-rs/bytes/issues/568))
### [`v1.2.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​121-July-30-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.2.0...v1.2.1)
##### Fixed
- Fix unbounded memory growth when using `reserve` ([#​560](https://github.com/tokio-rs/bytes/issues/560))
### [`v1.2.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​120-July-19-2022)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.0)
##### Added
- Add `BytesMut::zeroed` ([#​517](https://github.com/tokio-rs/bytes/issues/517))
- Implement `Extend<Bytes>` for `BytesMut` ([#​527](https://github.com/tokio-rs/bytes/issues/527))
- Add conversion from `BytesMut` to `Vec<u8>` ([#​543](https://github.com/tokio-rs/bytes/issues/543), [#​554](https://github.com/tokio-rs/bytes/issues/554))
- Add conversion from `Bytes` to `Vec<u8>` ([#​547](https://github.com/tokio-rs/bytes/issues/547))
- Add `UninitSlice::as_uninit_slice_mut()` ([#​548](https://github.com/tokio-rs/bytes/issues/548))
- Add const to `Bytes::{len,is_empty}` ([#​514](https://github.com/tokio-rs/bytes/issues/514))
##### Changed
- Reuse vector in `BytesMut::reserve` ([#​539](https://github.com/tokio-rs/bytes/issues/539), [#​544](https://github.com/tokio-rs/bytes/issues/544))
##### Fixed
- Make miri happy ([#​515](https://github.com/tokio-rs/bytes/issues/515), [#​523](https://github.com/tokio-rs/bytes/issues/523), [#​542](https://github.com/tokio-rs/bytes/issues/542), [#​545](https://github.com/tokio-rs/bytes/issues/545), [#​553](https://github.com/tokio-rs/bytes/issues/553))
- Make tsan happy ([#​541](https://github.com/tokio-rs/bytes/issues/541))
- Fix `remaining_mut()` on chain ([#​488](https://github.com/tokio-rs/bytes/issues/488))
- Fix amortized asymptotics of `BytesMut` ([#​555](https://github.com/tokio-rs/bytes/issues/555))
##### Documented
- Redraw layout diagram with box drawing characters ([#​539](https://github.com/tokio-rs/bytes/issues/539))
- Clarify `BytesMut::unsplit` docs ([#​535](https://github.com/tokio-rs/bytes/issues/535))
### [`v1.1.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​110-August-25-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.1...v1.1.0)
##### Added
- `BufMut::put_bytes(self, val, cnt)` ([#​487](https://github.com/tokio-rs/bytes/issues/487))
- Implement `From<Box<[u8]>>` for `Bytes` ([#​504](https://github.com/tokio-rs/bytes/issues/504))
##### Changed
- Override `put_slice` for `&mut [u8]` ([#​483](https://github.com/tokio-rs/bytes/issues/483))
- Panic on integer overflow in `Chain::remaining` ([#​482](https://github.com/tokio-rs/bytes/issues/482))
- Add inline tags to `UninitSlice` methods ([#​443](https://github.com/tokio-rs/bytes/issues/443))
- Override `copy_to_bytes` for Chain and Take ([#​481](https://github.com/tokio-rs/bytes/issues/481))
- Keep capacity when unsplit on empty other buf ([#​502](https://github.com/tokio-rs/bytes/issues/502))
##### Documented
- Clarify `BufMut` allocation guarantees ([#​501](https://github.com/tokio-rs/bytes/issues/501))
- Clarify `BufMut::put_int` behavior ([#​486](https://github.com/tokio-rs/bytes/issues/486))
- Clarify actions of `clear` and `truncate`. ([#​508](https://github.com/tokio-rs/bytes/issues/508))
### [`v1.0.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​101-January-11-2021)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v1.0.0...v1.0.1)
##### Changed
- mark `Vec::put_slice` with `#[inline]` ([#​459](https://github.com/tokio-rs/bytes/issues/459))
##### Fixed
- Fix deprecation warning ([#​457](https://github.com/tokio-rs/bytes/issues/457))
- use `Box::into_raw` instead of `mem::forget`-in-disguise ([#​458](https://github.com/tokio-rs/bytes/issues/458))
### [`v1.0.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​100-December-22-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.6.0...v1.0.0)
##### Changed
- Rename `Buf`/`BufMut` methods `bytes()` and `bytes_mut()` to `chunk()` and `chunk_mut()` ([#​450](https://github.com/tokio-rs/bytes/issues/450))
##### Removed
- remove unused Buf implementation. ([#​449](https://github.com/tokio-rs/bytes/issues/449))
### [`v0.6.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​060-October-21-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.6...v0.6.0)
API polish in preparation for a 1.0 release.
##### Changed
- `BufMut` is now an `unsafe` trait ([#​432](https://github.com/tokio-rs/bytes/issues/432)).
- `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
avoid undefined behavior ([#​433](https://github.com/tokio-rs/bytes/issues/433)).
- `Buf::copy_to_bytes(len)` replaces `Buf::into_bytes()` ([#​439](https://github.com/tokio-rs/bytes/issues/439)).
- `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
removed ([#​431](https://github.com/tokio-rs/bytes/issues/431)).
##### Removed
- `BufMut::bytes_vectored_mut()` ([#​430](https://github.com/tokio-rs/bytes/issues/430)).
- `new` methods on combinator types ([#​434](https://github.com/tokio-rs/bytes/issues/434)).
### [`v0.5.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​056-July-13-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.5...v0.5.6)
- Improve `BytesMut` to reuse buffer when fully `advance`d.
- Mark `BytesMut::{as_mut, set_len}` with `#[inline]`.
- Relax synchronization when cloning in shared vtable of `Bytes`.
- Move `loom` to `dev-dependencies`.
### [`v0.5.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​055-June-18-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.4...v0.5.5)
##### Added
- Allow using the `serde` feature in `no_std` environments ([#​385](https://github.com/tokio-rs/bytes/issues/385)).
##### Fix
- Fix `BufMut::advance_mut` to panic if advanced passed the capacity ([#​354](https://github.com/tokio-rs/bytes/issues/354))..
- Fix `BytesMut::freeze` ignoring amount previously `advance`d ([#​352](https://github.com/tokio-rs/bytes/issues/352)).
### [`v0.5.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​054-January-23-2020)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.3...v0.5.4)
##### Added
- Make `Bytes::new` a `const fn`.
- Add `From<BytesMut>` for `Bytes`.
##### Fix
- Fix reversed arguments in `PartialOrd` for `Bytes`.
- Fix `Bytes::truncate` losing original capacity when repr is an unshared `Vec`.
- Fix `Bytes::from(Vec)` when allocator gave `Vec` a pointer with LSB set.
- Fix panic in `Bytes::slice_ref` if argument is an empty slice.
### [`v0.5.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​053-December-12-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)
##### Added
- `must_use` attributes to `split`, `split_off`, and `split_to` methods ([#​337](https://github.com/tokio-rs/bytes/issues/337)).
##### Fix
- Potential freeing of a null pointer in `Bytes` when constructed with an empty `Vec<u8>` ([#​341](https://github.com/tokio-rs/bytes/issues/341), [#​342](https://github.com/tokio-rs/bytes/issues/342)).
- Calling `Bytes::truncate` with a size large than the length will no longer clear the `Bytes` ([#​333](https://github.com/tokio-rs/bytes/issues/333)).
### [`v0.5.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​052-November-27-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.1...v0.5.2)
##### Added
- `Limit` methods `into_inner`, `get_ref`, `get_mut`, `limit`, and `set_limit` ([#​325](https://github.com/tokio-rs/bytes/issues/325)).
### [`v0.5.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​051-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.5.0...v0.5.1)
##### Fix
- Growth documentation for `BytesMut` ([#​321](https://github.com/tokio-rs/bytes/issues/321))
### [`v0.5.0`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​050-November-25-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.12...v0.5.0)
##### Fix
- Potential overflow in `copy_to_slice`
##### Changed
- Increased minimum supported Rust version to 1.39.
- `Bytes` is now a "trait object", allowing for custom allocation strategies ([#​298](https://github.com/tokio-rs/bytes/issues/298))
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
`usize::MAX` ([#​316](https://github.com/tokio-rs/bytes/issues/316)).
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
initialization state ([#​305](https://github.com/tokio-rs/bytes/issues/305)).
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
respectively ([#​261](https://github.com/tokio-rs/bytes/issues/261)).
- Move `Buf` / `BufMut` "extra" functions to an extension trait ([#​306](https://github.com/tokio-rs/bytes/issues/306)).
- `BufMutExt::limit` ([#​309](https://github.com/tokio-rs/bytes/issues/309)).
- `Bytes::slice` takes a `RangeBounds` argument ([#​265](https://github.com/tokio-rs/bytes/issues/265)).
- `Bytes::from_static` is now a `const fn` ([#​311](https://github.com/tokio-rs/bytes/issues/311)).
- A multitude of smaller performance optimizations.
##### Added
- `no_std` support ([#​281](https://github.com/tokio-rs/bytes/issues/281)).
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
- `BorrowMut` implementation for `BytesMut` ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
##### Removed
- `IntoBuf` ([#​288](https://github.com/tokio-rs/bytes/issues/288)).
- `Buf` implementation for `&str` ([#​301](https://github.com/tokio-rs/bytes/issues/301)).
- `byteorder` dependency ([#​280](https://github.com/tokio-rs/bytes/issues/280)).
- `iovec` dependency, use `std::IoSlice` instead ([#​263](https://github.com/tokio-rs/bytes/issues/263)).
- optional `either` dependency ([#​315](https://github.com/tokio-rs/bytes/issues/315)).
- optional `i128` feature -- now available on stable. ([#​276](https://github.com/tokio-rs/bytes/issues/276)).
### [`v0.4.12`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.11...v0.4.12)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
### [`v0.4.11`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0411-November-17-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.10...v0.4.11)
- Use raw pointers for potentially racy loads ([#​233](https://github.com/tokio-rs/bytes/issues/233)).
- Implement `BufRead` for `buf::Reader` ([#​232](https://github.com/tokio-rs/bytes/issues/232)).
- Documentation tweaks ([#​234](https://github.com/tokio-rs/bytes/issues/234)).
### [`v0.4.10`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0410-September-4-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.9...v0.4.10)
- impl `Buf` and `BufMut` for `Either` ([#​225](https://github.com/tokio-rs/bytes/issues/225)).
- Add `Bytes::slice_ref` ([#​208](https://github.com/tokio-rs/bytes/issues/208)).
### [`v0.4.9`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​049-July-12-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.8...v0.4.9)
- Add 128 bit number support behind a feature flag ([#​209](https://github.com/tokio-rs/bytes/issues/209)).
- Implement `IntoBuf` for `&mut [u8]`
### [`v0.4.8`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​048-May-25-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.7...v0.4.8)
- Fix panic in `BytesMut` `FromIterator` implementation.
- Bytes: Recycle space when reserving space in vec mode ([#​197](https://github.com/tokio-rs/bytes/issues/197)).
- Bytes: Add resize fn ([#​203](https://github.com/tokio-rs/bytes/issues/203)).
### [`v0.4.7`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​047-April-27-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.6...v0.4.7)
- Make `Buf` and `BufMut` usable as trait objects ([#​186](https://github.com/tokio-rs/bytes/issues/186)).
- impl BorrowMut for BytesMut ([#​185](https://github.com/tokio-rs/bytes/issues/185)).
- Improve accessor performance ([#​195](https://github.com/tokio-rs/bytes/issues/195)).
### [`v0.4.6`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​046-Janary-8-2018)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.5...v0.4.6)
- Implement FromIterator for Bytes/BytesMut ([#​148](https://github.com/tokio-rs/bytes/issues/148)).
- Add `advance` fn to Bytes/BytesMut ([#​166](https://github.com/tokio-rs/bytes/issues/166)).
- Add `unsplit` fn to `BytesMut` ([#​162](https://github.com/tokio-rs/bytes/issues/162), [#​173](https://github.com/tokio-rs/bytes/issues/173)).
- Improvements to Bytes split fns ([#​92](https://github.com/tokio-rs/bytes/issues/92)).
### [`v0.4.5`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​045-August-12-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.4...v0.4.5)
- Fix range bug in `Take::bytes`
- Misc performance improvements
- Add extra `PartialEq` implementations.
- Add `Bytes::with_capacity`
- Implement `AsMut[u8]` for `BytesMut`
### [`v0.4.4`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​044-May-26-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.3...v0.4.4)
- Add serde support behind feature flag
- Add `extend_from_slice` on `Bytes` and `BytesMut`
- Add `truncate` and `clear` on `Bytes`
- Misc additional std trait implementations
- Misc performance improvements
### [`v0.4.3`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​043-April-30-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.2...v0.4.3)
- Fix Vec::advance_mut bug
- Bump minimum Rust version to 1.15
- Misc performance tweaks
### [`v0.4.2`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​042-April-5-2017)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.1...v0.4.2)
- Misc performance tweaks
- Improved `Debug` implementation for `Bytes`
- Avoid some incorrect assert panics
### [`v0.4.1`](https://github.com/tokio-rs/bytes/blob/HEAD/CHANGELOG.md#​0412-March-6-2019)
[Compare Source](https://github.com/tokio-rs/bytes/compare/v0.4.0...v0.4.1)
##### Added
- Implement `FromIterator<&'a u8>` for `BytesMut`/`Bytes` ([#​244](https://github.com/tokio-rs/bytes/issues/244)).
- Implement `Buf` for `VecDeque` ([#​249](https://github.com/tokio-rs/bytes/issues/249)).
</details>
<details>
<summary>capnproto/capnproto-rust</summary>
### [`v0.18.1`](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.18.0...capnp-v0.18.1)
### [`v0.18.0`](https://github.com/capnproto/capnproto-rust/compare/capnpc-v0.17.2...capnpc-v0.18.0)
[Compare Source](https://github.com/capnproto/capnproto-rust/compare/capnp-v0.17.2...capnp-v0.18.0)
</details>
<details>
<summary>bheisler/criterion.rs</summary>
### [`v0.5.1`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​051---2023-05-26)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)
##### Fixed
- Quick mode (--quick) no longer crashes with measured times over 5 seconds when --noplot is not active
### [`v0.5.0`](https://github.com/bheisler/criterion.rs/blob/HEAD/CHANGELOG.md#​050---2023-05-23)
[Compare Source](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)
##### Changed
- Replaced lazy_static dependency with once_cell
- Improved documentation of the `html_reports` feature
- Replaced atty dependency with is-terminal
- MSRV bumped to 1.64
- Upgraded clap dependency to v4
- Upgraded tempfile dependency to v3.5.0
##### Fixed
- Quick mode (`--quick`) no longer outputs 1ms for measured times over 5 seconds
- Documentation updates
</details>
<details>
<summary>tokio-rs/prost</summary>
### [`v0.12.1`](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1)
### [`v0.12.0`](https://github.com/tokio-rs/prost/releases/tag/v0.12.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- Bump `syn` to version 2
- Bump MSRV to 1.64
- Added `TryFrom<i32>` for enums
- Optional debug implementations
- Initial generic `Any` and `Name` impl/traits.
### [`v0.11.9`](https://github.com/tokio-rs/prost/releases/tag/v0.11.9)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.8...v0.11.9)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Support boxing fields via `Config::boxed` ([#​802](https://github.com/tokio-rs/prost/pull/802))
### [`v0.11.8`](https://github.com/tokio-rs/prost/releases/tag/v0.11.8)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.7...v0.11.8)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- types: Fix unintentional change in compiler module visibility [#​824](https://github.com/tokio-rs/prost/pull/824)
`prost-types` 0.11.7 was yanked due to the above unintentional semver breakage.
### [`v0.11.7`](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.6...v0.11.7)
### [`v0.11.6`](https://github.com/tokio-rs/prost/releases/tag/v0.11.6)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.5...v0.11.6)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add message and enum attributes (https://github.com/tokio-rs/prost/pull/784)
### [`v0.11.5`](https://github.com/tokio-rs/prost/releases/tag/v0.11.5)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.4...v0.11.5)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Allow file descriptor be generated without --include_source_info (https://github.com/tokio-rs/prost/pull/786)
- build: Expose from_str_name for generated enums (https://github.com/tokio-rs/prost/pull/774)
### [`v0.11.4`](https://github.com/tokio-rs/prost/releases/tag/v0.11.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.3...v0.11.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Add clippy allow lint to all code generated prost structs
### [`v0.11.3`](https://github.com/tokio-rs/prost/releases/tag/v0.11.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.2...v0.11.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Use `log` to print error logs.
- build: Remove accidentally included prints.
- build: Improve debian error message hint.
### [`v0.11.2`](https://github.com/tokio-rs/prost/releases/tag/v0.11.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/prost-build-0.11.1...v0.11.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This patch updates brings a few new features and fixes:
- build: Improve `protoc` sourcing instructions in error messages.
- build: Add `Clone` to `Service` types.
- build: Sort modules to produce deterministic include files.
- core: Tuple struct support.
- build: Allow generated code derive path's to be changed.
- build: Allow changing prost crate path.
- build: Add code formatting support.
### [`v0.11.1`](https://github.com/tokio-rs/prost/releases/tag/prost-build-0.11.1): prost-build-v0.11.1
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.11.0...prost-build-0.11.1)
- Removes extra spaces in doc generation
### [`v0.11.0`](https://github.com/tokio-rs/prost/releases/tag/v0.11.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.4...v0.11.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Relase 0.11 brings a few breaking changes and changes to how prost sources protoc.
- `prost-build` now requires `protoc` to be available in the path or set
via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021
Notible changes that are not breaking:
- `prost-build` now has a `cleanup-markdown` feature for cleaining up
code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
### [`v0.10.4`](https://github.com/tokio-rs/prost/releases/tag/v0.10.4)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.3...v0.10.4)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Small fix for compiling protoc from source to speed up compile times.
### [`v0.10.3`](https://github.com/tokio-rs/prost/releases/tag/v0.10.3)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.2...v0.10.3)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release is actually the `v0.10.2` release but `prost-build` had to be yanked because of a local publish issue)
### [`v0.10.2`](https://github.com/tokio-rs/prost/releases/tag/v0.10.2)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.2)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This release reverts [#​605](https://github.com/tokio-rs/prost/issues/605) and contains some typo fixes.
(this release was yanked due to missing third-party source, `v0.10.3` is now the active release for this)
### [`v0.10.1`](https://github.com/tokio-rs/prost/releases/tag/v0.10.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.10.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
This minor release brings no new code changes but symlinks license files in all the crates.
### [`v0.10.0`](https://github.com/tokio-rs/prost/releases/tag/v0.10.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.9.0...v0.10.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.10 brings a few new ....
- `protoc` is no longer bundled but is now compiled from bundled source
- Minor performance improvements
- Methods exposed to allow third party protobuf generation libraries
### [`v0.9.0`](https://github.com/tokio-rs/prost/releases/tag/v0.9.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
### [`v0.8.0`](https://github.com/tokio-rs/prost/releases/tag/v0.8.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
*NOTE: This version contains a security fix for `prost-types` and is recommend that you upgrade to it from <0.7.*
`prost` 0.8.0 includes breaking changes:
- `Timestamp`'s `From` implementation for converting into `SystemTime` has been converted to a fallible `TryFrom` implementation.
- `prost-build`'s `compile_protos` now takes `impl AsRef<Path>` to allow each parameter to use its own generic type.
- Bundled `protoc` version bumped to `3.15.8`
As well as many new (non-breaking) changes:
- [@​pluth](https://github.com/pluth) enabled zero-copy support for `Bytes` based fields.
- [@​sfackler](https://github.com/sfackler) for fixing message optionals and oneofs in `prost-build`.
- [@​rubdos](https://github.com/rubdos) for adding the ability to encode prost messages directly to a `Vec<u8>`.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
- [@​dfreese](https://github.com/dfreese)
- [@​carols10cents](https://github.com/carols10cents)
- [@​pluth](https://github.com/pluth)
- [@​jfornoff](https://github.com/jfornoff)
- [@​sphw](https://github.com/sphw)
- [@​bpowers](https://github.com/bpowers)
- [@​sfackler](https://github.com/sfackler)
- [@​koushiro](https://github.com/koushiro)
- [@​dbrgn](https://github.com/dbrgn)
- [@​argv-minus-one](https://github.com/argv-minus-one)
- [@​nagisa](https://github.com/nagisa)
- [@​evanj](https://github.com/evanj)
- [@​aquarhead](https://github.com/aquarhead)
### [`v0.7.0`](https://github.com/tokio-rs/prost/releases/tag/v0.7.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.1...v0.7.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The `bytes` public dependency version is now 1.0.
- The bundled `protoc` version is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- [@​hockeybuggy](https://github.com/hockeybuggy) added support for `deprecated` field annotations.
- [@​garbageslam](https://github.com/garbageslam) and [@​dflemstr](https://github.com/dflemstr) added `no_std` support.
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz) fixed a bug in Timestamp <-> SystemTime conversions.
- [@​rolftimmermans](https://github.com/rolftimmermans) added support for generating Rust `bytes::Bytes` fields from protobuf `bytes` fields. When deserializing from a `Bytes` instance, this enables zero-copy deserialization for `bytes` fields!
- [@​olix0r](https://github.com/olix0r) bumped the `bytes` dependency to 0.6, which included most of the heavy lifting for the subsequent move to `bytes` 1.0.
- [@​danburkert](https://github.com/danburkert) added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
- M@ Dunlap
- [@​Max-Meldrum](https://github.com/Max-Meldrum)
- [@​Veetaha](https://github.com/Veetaha)
- [@​dan-fritchman](https://github.com/dan-fritchman)
- [@​danburkert](https://github.com/danburkert)
- [@​dflemstr](https://github.com/dflemstr)
- [@​dfreese](https://github.com/dfreese)
- [@​gabrielrussoc](https://github.com/gabrielrussoc)
- [@​garbageslam](https://github.com/garbageslam)
- [@​hockeybuggy](https://github.com/hockeybuggy)
- [@​jen20](https://github.com/jen20)
- [@​joseph-wakeling-frequenz](https://github.com/joseph-wakeling-frequenz)
- [@​olix0r](https://github.com/olix0r)
- [@​oll3](https://github.com/oll3)
- [@​repi](https://github.com/repi)
- [@​rolftimmermans](https://github.com/rolftimmermans)
- [@​vorot93](https://github.com/vorot93)
- [@​wchargin](https://github.com/wchargin)
### [`v0.6.1`](https://github.com/tokio-rs/prost/releases/tag/v0.6.1)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.6.0...v0.6.1)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by [@​dbrgn](https://github.com/dbrgn) in [#​267](https://github.com/tokio-rs/prost/issues/267) (with an attached repro!), and fixed by [@​danburkert](https://github.com/danburkert). The fix extended the same recursion limits introduced in [#​186](https://github.com/tokio-rs/prost/issues/186) by [@​nrc](https://github.com/nrc) (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the `prost` crates has been yanked from crates.io.
Additionally, [@​koushiro](https://github.com/koushiro) updated the private dependencies of all `prost` crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
### [`v0.6.0`](https://github.com/tokio-rs/prost/releases/tag/v0.6.0)
[Compare Source](https://github.com/tokio-rs/prost/compare/v0.5.0...v0.6.0)
*PROST!* is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files.
`prost` 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The `bytes` public dependency version is now `0.5`.
- The prost-types `Timestamp` and `Duration` types now impl `TryFrom` for their
`std::time` equivalents. The old inherent `try_from` methods have been
removed.
- Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a new `no-recursion-limit` Cargo feature.
As well as many new (non-breaking) features and improvements:
- [@​hanya](https://github.com/hanya) added support for protobuf Group types.
- [@​danburkert](https://github.com/danburkert) improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks.
- [@​nrc](https://github.com/nrc) implemented a series of micro-optimizations which result in faster
message encoding and decoding.
- [@​dunmatt](https://github.com/dunmatt) improved the method docs on generated types.
- [@​lukaslueg](https://github.com/lukaslueg) removed the dependency on `byteorder`.
- [@​parasyte](https://github.com/parasyte) added the `ServiceGenerator::finalize_package`, which is useful for
advanced service generators.
- [@​joelgallant](https://github.com/joelgallant) improved the error message that occurs when attempting to compile
.proto files without a package specifier.
- [@​LucioFranco](https://github.com/LucioFranco) removed the direct dependency of generated types on the `bytes`
crate, which means applications which use `prost` code generation are no
longer required to declare a `bytes` dependency.
- [@​ErichDonGubler](https://github.com/ErichDonGubler) and [@​hobofan](https://github.com/hobofan) bumped the `syn`, `quote`, and `proc-macro2` to stable
versions.
- [@​Timmmm](https://github.com/Timmmm) improved `prost-build` so that it no longer writes .rs files when they
are unchanged, which improves working with tools like `cargo watch` in
codebases with `prost` code generation.
- [@​Hirevo](https://github.com/Hirevo) replaced usage of `failure` with `anyhow`.
- [@​danburkert](https://github.com/danburkert) bumped the packaged `protoc` version to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
</details>
<details>
<summary>serde-rs/serde</summary>
### [`v1.0.188`](https://github.com/serde-rs/serde/releases/tag/v1.0.188)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)
- Fix *"failed to parse manifest"* error when building serde using a Cargo version between 1.45 and 1.50 ([#​2603](https://github.com/serde-rs/serde/issues/2603))
### [`v1.0.187`](https://github.com/serde-rs/serde/releases/tag/v1.0.187)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)
- Remove support for Emscripten targets on rustc older than 1.40 ([#​2600](https://github.com/serde-rs/serde/issues/2600))
### [`v1.0.186`](https://github.com/serde-rs/serde/releases/tag/v1.0.186)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)
- Disallow incompatible versions of `serde_derive` and `serde` in the dependency graph ([#​2588](https://github.com/serde-rs/serde/issues/2588), thanks [@​soqb](https://github.com/soqb))
### [`v1.0.185`](https://github.com/serde-rs/serde/releases/tag/v1.0.185)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.185)
- Fix error *"cannot move out of `*self` which is behind a shared reference"* deriving Serialize on a non_exhaustive enum ([#​2591](https://github.com/serde-rs/serde/issues/2591))
### [`v1.0.184`](https://github.com/serde-rs/serde/releases/tag/v1.0.184)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.184)
- Restore from-source `serde_derive` build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
### [`v1.0.183`](https://github.com/serde-rs/serde/releases/tag/v1.0.183)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.182...v1.0.183)
- Support deserializing `Box<OsStr>` with an equivalent representation as `OsString` ([#​2556](https://github.com/serde-rs/serde/issues/2556), thanks [@​DBLouis](https://github.com/DBLouis))
### [`v1.0.182`](https://github.com/serde-rs/serde/releases/tag/v1.0.182)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.182)
- Render field aliases in sorted order in error messages ([#​2458](https://github.com/serde-rs/serde/issues/2458), thanks [@​Mingun](https://github.com/Mingun))
- Support `serde(default)` on tuple structs ([#​2553](https://github.com/serde-rs/serde/issues/2553), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.181`](https://github.com/serde-rs/serde/releases/tag/v1.0.181)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)
- Make `serde(alias)` work in combination with `flatten` when using in-place deserialization ([#​2443](https://github.com/serde-rs/serde/issues/2443), thanks [@​Mingun](https://github.com/Mingun))
- Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name ([#​2505](https://github.com/serde-rs/serde/issues/2505), [#​2496](https://github.com/serde-rs/serde/issues/2496), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.180`](https://github.com/serde-rs/serde/releases/tag/v1.0.180)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)
- Update to 2018 edition
### [`v1.0.179`](https://github.com/serde-rs/serde/releases/tag/v1.0.179)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.178...v1.0.179)
- Support serialization of tuple variants inside a flattened field ([#​2448](https://github.com/serde-rs/serde/issues/2448), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.178`](https://github.com/serde-rs/serde/releases/tag/v1.0.178)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.178)
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on ([#​2541](https://github.com/serde-rs/serde/issues/2541))
### [`v1.0.177`](https://github.com/serde-rs/serde/releases/tag/v1.0.177)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)
- Add `serde(rename_all_fields = "...")` attribute to apply a `rename_all` on every struct variant of an enum ([#​1695](https://github.com/serde-rs/serde/issues/1695), thanks [@​jplatte](https://github.com/jplatte))
- Improve diagnostics for attribute parse errors ([#​2536](https://github.com/serde-rs/serde/issues/2536), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.176`](https://github.com/serde-rs/serde/releases/tag/v1.0.176)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant ([#​2266](https://github.com/serde-rs/serde/issues/2266), thanks [@​flisky](https://github.com/flisky))
### [`v1.0.175`](https://github.com/serde-rs/serde/releases/tag/v1.0.175)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175)
- Restore missing LICENSE files in serde_derive crate ([#​2527](https://github.com/serde-rs/serde/issues/2527), thanks [@​ankane](https://github.com/ankane))
### [`v1.0.174`](https://github.com/serde-rs/serde/releases/tag/v1.0.174)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174)
- Documentation improvements
### [`v1.0.173`](https://github.com/serde-rs/serde/releases/tag/v1.0.173)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.173)
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the `bitflags` crate ([#​2516](https://github.com/serde-rs/serde/issues/2516))
### [`v1.0.172`](https://github.com/serde-rs/serde/releases/tag/v1.0.172)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.172)
- Experiment with precompiling the serde_derive macros to reduce build time ([#​2514](https://github.com/serde-rs/serde/issues/2514))
### [`v1.0.171`](https://github.com/serde-rs/serde/releases/tag/v1.0.171)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171)
- Support `derive(Deserialize)` on unit structs that have const generics ([#​2500](https://github.com/serde-rs/serde/issues/2500), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
### [`v1.0.170`](https://github.com/serde-rs/serde/releases/tag/v1.0.170)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170)
- Produce error message on suffixed string literals inside serde attributes ([#​2242](https://github.com/serde-rs/serde/issues/2242))
- Support single identifier as unbraced default value for const generic parameter ([#​2449](https://github.com/serde-rs/serde/issues/2449))
### [`v1.0.169`](https://github.com/serde-rs/serde/releases/tag/v1.0.169)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.169)
- Add Deserializer::deserialize_identifier support for adjacently tagged enums ([#​2475](https://github.com/serde-rs/serde/issues/2475), thanks [@​Baptistemontan](https://github.com/Baptistemontan))
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions ([#​2414](https://github.com/serde-rs/serde/issues/2414))
### [`v1.0.168`](https://github.com/serde-rs/serde/releases/tag/v1.0.168)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.168)
- Allow `serde::de::IgnoredAny` to be the type for a `serde(flatten)` field ([#​2436](https://github.com/serde-rs/serde/issues/2436), thanks [@​Mingun](https://github.com/Mingun))
- Allow larger preallocated capacity for smaller elements ([#​2494](https://github.com/serde-rs/serde/issues/2494))
### [`v1.0.167`](https://github.com/serde-rs/serde/releases/tag/v1.0.167)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)
- Add serialize and deserialize impls for `RangeFrom` and `RangeTo` ([#​2471](https://github.com/serde-rs/serde/issues/2471), thanks [@​tbu-](https://github.com/tbu-))
### [`v1.0.166`](https://github.com/serde-rs/serde/releases/tag/v1.0.166)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)
- Add `no-alloc` category to crates.io metadata
### [`v1.0.165`](https://github.com/serde-rs/serde/releases/tag/v1.0.165)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)
- Fix incorrect count of fields passed to tuple deserialization methods when using `serde(skip_deserializing)` attributes ([#​2466](https://github.com/serde-rs/serde/issues/2466), thanks [@​Mingun](https://github.com/Mingun))
- Fix `-Zminimal-versions` build
### [`v1.0.164`](https://github.com/serde-rs/serde/releases/tag/v1.0.164)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)
- Allowed enum variants to be individually marked as untagged ([#​2403](https://github.com/serde-rs/serde/issues/2403), thanks [@​dewert99](https://github.com/dewert99))
### [`v1.0.163`](https://github.com/serde-rs/serde/releases/tag/v1.0.163)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)
- Eliminate build script from serde_derive crate to slightly reduce build time ([#​2442](https://github.com/serde-rs/serde/issues/2442), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.162`](https://github.com/serde-rs/serde/releases/tag/v1.0.162)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.161...v1.0.162)
- Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the `csv` crate ([#​2377](https://github.com/serde-rs/serde/issues/2377), thanks [@​mfro](https://github.com/mfro))
```rust
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
```
```csv
common,kind,parameter
1,foo,42
2,bar,true
```
### [`v1.0.161`](https://github.com/serde-rs/serde/releases/tag/v1.0.161)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.161)
- Improve error messages produced by serde_test on test failure ([#​2435](https://github.com/serde-rs/serde/issues/2435), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.160`](https://github.com/serde-rs/serde/releases/tag/v1.0.160)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160)
- Make derived serializer/deserializer internals `doc(hidden)` ([#​2426](https://github.com/serde-rs/serde/issues/2426), thanks [@​compiler-errors](https://github.com/compiler-errors))
### [`v1.0.159`](https://github.com/serde-rs/serde/releases/tag/v1.0.159)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159)
- Accept empty #\[serde()] attribute ([#​2422](https://github.com/serde-rs/serde/issues/2422))
### [`v1.0.158`](https://github.com/serde-rs/serde/releases/tag/v1.0.158)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.157...v1.0.158)
- Fix *"expected serde crate attribute to be a string"* error when using macro_rules metavariable inside of serde attribute: `#[serde(crate = $serde_path)]` ([#​2409](https://github.com/serde-rs/serde/issues/2409))
### [`v1.0.157`](https://github.com/serde-rs/serde/releases/tag/v1.0.157)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.157)
- Update syn dependency to 2.x
### [`v1.0.156`](https://github.com/serde-rs/serde/releases/tag/v1.0.156)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.155...v1.0.156)
- Documentation improvements
### [`v1.0.155`](https://github.com/serde-rs/serde/releases/tag/v1.0.155)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155)
- Support `Serialize` and `Deserialize` impls for `core::ffi::CStr` and `alloc::ffi::CString` without "std" feature ([#​2374](https://github.com/serde-rs/serde/issues/2374), thanks [@​safarir](https://github.com/safarir))
### [`v1.0.154`](https://github.com/serde-rs/serde/releases/tag/v1.0.154)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.153...v1.0.154)
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both `flatten` and `'static` fields ([#​2383](https://github.com/serde-rs/serde/issues/2383), thanks [@​Mingun](https://github.com/Mingun))
### [`v1.0.153`](https://github.com/serde-rs/serde/releases/tag/v1.0.153)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.153)
- Support `serde(alias = "…")` attribute used inside of flattened struct ([#​2387](https://github.com/serde-rs/serde/issues/2387), thanks [@​bebecue](https://github.com/bebecue))
### [`v1.0.152`](https://github.com/serde-rs/serde/releases/tag/v1.0.152)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152)
- Documentation improvements
### [`v1.0.151`](https://github.com/serde-rs/serde/releases/tag/v1.0.151)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151)
- Update `serde::`{`ser`,`de`}`::StdError` to re-export `core::error::Error` when serde is built with `feature="std"` **off** and `feature="unstable"` **on** ([#​2344](https://github.com/serde-rs/serde/issues/2344))
### [`v1.0.150`](https://github.com/serde-rs/serde/releases/tag/v1.0.150)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150)
- Relax some trait bounds from the `Serialize` impl of `HashMap` and `BTreeMap` ([#​2334](https://github.com/serde-rs/serde/issues/2334))
- Enable `Serialize` and `Deserialize` impls of `std::sync::atomic` types on more platforms ([#​2337](https://github.com/serde-rs/serde/issues/2337), thanks [@​badboy](https://github.com/badboy))
### [`v1.0.149`](https://github.com/serde-rs/serde/releases/tag/v1.0.149)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149)
- Relax some trait bounds from the `Serialize` impl of `BinaryHeap`, `BTreeSet`, and `HashSet` ([#​2333](https://github.com/serde-rs/serde/issues/2333), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.148`](https://github.com/serde-rs/serde/releases/tag/v1.0.148)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148)
- Support `remote` derive for generic types that have private fields ([#​2327](https://github.com/serde-rs/serde/issues/2327))
### [`v1.0.147`](https://github.com/serde-rs/serde/releases/tag/v1.0.147)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.146...v1.0.147)
- Add `serde::de::value::EnumAccessDeserializer` which transforms an `EnumAccess` into a `Deserializer` ([#​2305](https://github.com/serde-rs/serde/issues/2305))
### [`v1.0.146`](https://github.com/serde-rs/serde/releases/tag/v1.0.146)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.146)
- Allow internally tagged newtype variant to contain unit ([#​2303](https://github.com/serde-rs/serde/issues/2303), thanks [@​tage64](https://github.com/tage64))
### [`v1.0.145`](https://github.com/serde-rs/serde/releases/tag/v1.0.145)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145)
- Allow RefCell\<T>, Mutex\<T>, and RwLock\<T> to be serialized regardless of whether T is `Sized` ([#​2282](https://github.com/serde-rs/serde/issues/2282), thanks [@​ChayimFriedman2](https://github.com/ChayimFriedman2))
### [`v1.0.144`](https://github.com/serde-rs/serde/releases/tag/v1.0.144)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)
- Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types ([#​2263](https://github.com/serde-rs/serde/issues/2263), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.143`](https://github.com/serde-rs/serde/releases/tag/v1.0.143)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.142...v1.0.143)
- Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case ([#​2253](https://github.com/serde-rs/serde/issues/2253), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.142`](https://github.com/serde-rs/serde/releases/tag/v1.0.142)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.142)
- Add keywords to crates.io metadata
### [`v1.0.141`](https://github.com/serde-rs/serde/releases/tag/v1.0.141)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)
- Add `no-std` category to crates.io metadata
### [`v1.0.140`](https://github.com/serde-rs/serde/releases/tag/v1.0.140)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)
- Invert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain ([#​2251](https://github.com/serde-rs/serde/issues/2251), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.139`](https://github.com/serde-rs/serde/releases/tag/v1.0.139)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.138...v1.0.139)
- Add `new` constructor function for all `IntoDeserializer` impls ([#​2246](https://github.com/serde-rs/serde/issues/2246))
### [`v1.0.138`](https://github.com/serde-rs/serde/releases/tag/v1.0.138)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)
- Documentation improvements
### [`v1.0.137`](https://github.com/serde-rs/serde/releases/tag/v1.0.137)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)
- Update documentation links to some data formats whose repos have moved ([#​2201](https://github.com/serde-rs/serde/issues/2201), thanks [@​atouchet](https://github.com/atouchet))
- Fix declared `rust-version` of serde and serde_test ([#​2168](https://github.com/serde-rs/serde/issues/2168))
### [`v1.0.136`](https://github.com/serde-rs/serde/releases/tag/v1.0.136)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)
- Improve default error message when `Visitor` fails to deserialize a u128 or i128 ([#​2167](https://github.com/serde-rs/serde/issues/2167))
### [`v1.0.135`](https://github.com/serde-rs/serde/releases/tag/v1.0.135)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.135)
- Update discord channels listed in readme
### [`v1.0.134`](https://github.com/serde-rs/serde/releases/tag/v1.0.134)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134)
- Improve error messages on deserializing NonZero integers from a 0 value ([#​2158](https://github.com/serde-rs/serde/issues/2158))
### [`v1.0.133`](https://github.com/serde-rs/serde/releases/tag/v1.0.133)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133)
- Optimize deserialization of data structures that contain recursive use of `flatten` fields or `tag` or `untagged` enums ([#​2148](https://github.com/serde-rs/serde/issues/2148))
### [`v1.0.132`](https://github.com/serde-rs/serde/releases/tag/v1.0.132)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132)
- Enable Serialize and Deserialize impls for `std::sync::atomic::{AtomicI64, AtomicU64}` on riscv64 arch ([#​2141](https://github.com/serde-rs/serde/issues/2141), thanks [@​Avimitin](https://github.com/Avimitin))
### [`v1.0.131`](https://github.com/serde-rs/serde/releases/tag/v1.0.131)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131)
- Avoid `unused_results` being triggered in generated code for adjacently tagged enum ([#​2116](https://github.com/serde-rs/serde/issues/2116), thanks [@​tyranron](https://github.com/tyranron))
### [`v1.0.130`](https://github.com/serde-rs/serde/releases/tag/v1.0.130)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130)
- Provide `MapAccess` and `SeqAccess` impl for reference to a dynamically sized existing impl ([#​2081](https://github.com/serde-rs/serde/issues/2081))
### [`v1.0.129`](https://github.com/serde-rs/serde/releases/tag/v1.0.129)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129)
- Support deserialization of remote structs that used packed repr ([#​2078](https://github.com/serde-rs/serde/issues/2078), [#​2079](https://github.com/serde-rs/serde/issues/2079), [#​2080](https://github.com/serde-rs/serde/issues/2080))
### [`v1.0.128`](https://github.com/serde-rs/serde/releases/tag/v1.0.128)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128)
- Enable 128-bit integers on emscripten in Rust 1.40+ ([#​2076](https://github.com/serde-rs/serde/issues/2076), thanks [@​Manishearth](https://github.com/Manishearth))
### [`v1.0.127`](https://github.com/serde-rs/serde/releases/tag/v1.0.127)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)
- Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
### [`v1.0.126`](https://github.com/serde-rs/serde/releases/tag/v1.0.126)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)
- Resolve conflict with `forbid(future_incompatible)` lint setting in generated code ([#​2026](https://github.com/serde-rs/serde/issues/2026), thanks [@​hyd-dev](https://github.com/hyd-dev))
### [`v1.0.125`](https://github.com/serde-rs/serde/releases/tag/v1.0.125)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)
- Improve performance of serializing `Ipv4Addr` ([#​2001](https://github.com/serde-rs/serde/issues/2001), thanks [@​saethlin](https://github.com/saethlin))
### [`v1.0.124`](https://github.com/serde-rs/serde/releases/tag/v1.0.124)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124)
- Fix possible panic deserializing invalid data as `SystemTime` ([#​1997](https://github.com/serde-rs/serde/issues/1997), thanks [@​cyang1](https://github.com/cyang1))
### [`v1.0.123`](https://github.com/serde-rs/serde/releases/tag/v1.0.123)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123)
- Support `Self` keywords in fields of types that derive Deserialize ([#​1830](https://github.com/serde-rs/serde/issues/1830), thanks [@​taiki-e](https://github.com/taiki-e))
- Allow floats to be deserialized from ints in tagged unions ([#​1842](https://github.com/serde-rs/serde/issues/1842), thanks [@​Timmmm](https://github.com/Timmmm))
- Support `Self` inside fields that use serialize_with ([#​1970](https://github.com/serde-rs/serde/issues/1970))
### [`v1.0.122`](https://github.com/serde-rs/serde/releases/tag/v1.0.122)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.121...v1.0.122)
- Add IntoDeserializer impl for &\[u8] ([#​1898](https://github.com/serde-rs/serde/issues/1898), thanks [@​Mingun](https://github.com/Mingun))
- Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys ([#​1914](https://github.com/serde-rs/serde/issues/1914), thanks [@​Mingun](https://github.com/Mingun))
- Add attribute to override default deserialization failure expectation message ([#​1916](https://github.com/serde-rs/serde/issues/1916), thanks [@​Mingun](https://github.com/Mingun))
```rust
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
```
- Improve `serde_test` handling of map entries and error message construction ([#​1918](https://github.com/serde-rs/serde/issues/1918), thanks [@​Mingun](https://github.com/Mingun))
- Produce more accurate location information on test failures from `serde_test` crate ([#​1920](https://github.com/serde-rs/serde/issues/1920), thanks [@​Mingun](https://github.com/Mingun))
- Improve diagnostic on failure to parse a `rename_all` attribute ([#​1960](https://github.com/serde-rs/serde/issues/1960), [#​1961](https://github.com/serde-rs/serde/issues/1961))
- Eliminate unnecessary trait bounds on some value Deserializer impls ([#​1963](https://github.com/serde-rs/serde/issues/1963))
### [`v1.0.121`](https://github.com/serde-rs/serde/releases/tag/v1.0.121)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.121)
- Support borrowed data during deserialization of a field identifier ([#​1917](https://github.com/serde-rs/serde/issues/1917), thanks [@​Mingun](https://github.com/Mingun))
- Fix panic when deserializing `Duration` with nanoseconds that cause the seconds counter to overflow ([#​1958](https://github.com/serde-rs/serde/issues/1958), thanks [@​jonasbb](https://github.com/jonasbb))
### [`v1.0.120`](https://github.com/serde-rs/serde/releases/tag/v1.0.120)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120)
- Fix deserialization of ignored fields containing 128-bit integer ([#​1955](https://github.com/serde-rs/serde/issues/1955), thanks [@​TheJokr](https://github.com/TheJokr))
### [`v1.0.119`](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119)
### [`v1.0.118`](https://github.com/serde-rs/serde/releases/tag/v1.0.118)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118)
- Support serialization of core::num::Wrapping in no_std mode ([#​1926](https://github.com/serde-rs/serde/issues/1926), thanks [@​attente](https://github.com/attente))
### [`v1.0.117`](https://github.com/serde-rs/serde/releases/tag/v1.0.117)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)
- Allow serialization of std::net::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
### [`v1.0.116`](https://github.com/serde-rs/serde/releases/tag/v1.0.116)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.116)
- Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 ([#​1888](https://github.com/serde-rs/serde/issues/1888), thanks [@​joshtriplett](https://github.com/joshtriplett))
### [`v1.0.115`](https://github.com/serde-rs/serde/releases/tag/v1.0.115)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.114...v1.0.115)
- Support `#[serde(flatten)]` on a field whose type is a type parameter and concrete type is `()` ([#​1873](https://github.com/serde-rs/serde/issues/1873))
### [`v1.0.114`](https://github.com/serde-rs/serde/releases/tag/v1.0.114)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.113...v1.0.114)
- Improve `packed` repr matching to support deriving Serialize for structs having `repr(C, packed)` ([#​1813](https://github.com/serde-rs/serde/issues/1813), thanks [@​TannerRogalsky](https://github.com/TannerRogalsky))
### [`v1.0.113`](https://github.com/serde-rs/serde/releases/tag/v1.0.113)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.113)
- Improve diagnostic when a serde trait is not implemented ([#​1827](https://github.com/serde-rs/serde/issues/1827), thanks [@​taiki-e](https://github.com/taiki-e))
### [`v1.0.112`](https://github.com/serde-rs/serde/releases/tag/v1.0.112)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112)
- Support `serde(flatten)` on map types where the Serializer only works with serialize_entry ([#​1837](https://github.com/serde-rs/serde/issues/1837))
### [`v1.0.111`](https://github.com/serde-rs/serde/releases/tag/v1.0.111)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111)
- Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of `#[derive(Deserialize)] struct S<'a> { field: $field }` ([#​1821](https://github.com/serde-rs/serde/issues/1821))
### [`v1.0.110`](https://github.com/serde-rs/serde/releases/tag/v1.0.110)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.109...v1.0.110)
- Support deriving Serialize impl for a `repr(packed)` struct ([#​1791](https://github.com/serde-rs/serde/issues/1791), thanks [@​alvardes](https://github.com/alvardes))
### [`v1.0.109`](https://github.com/serde-rs/serde/releases/tag/v1.0.109)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.108...v1.0.109)
- Allow adjacently tagged newtype variants containing `Option` to omit the content field when deserializing ([#​1553](https://github.com/serde-rs/serde/issues/1553), [#​1706](https://github.com/serde-rs/serde/issues/1706), thanks [@​zth0](https://github.com/zth0))
- Avoid panicking when a SystemTime older than UNIX_EPOCH is serialized ([#​1702](https://github.com/serde-rs/serde/issues/1702), thanks [@​hjiayz](https://github.com/hjiayz))
### [`v1.0.108`](https://github.com/serde-rs/serde/releases/tag/v1.0.108)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.107...v1.0.108)
- Provide a `Serializer` impl that can write primitives and unit variants to a `&mut fmt::Formatter` ([#​1705](https://github.com/serde-rs/serde/issues/1705), thanks [@​jethrogb](https://github.com/jethrogb))
```rust
use serde::Serialize;
use std::fmt::{self, Display};
#[derive(Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum MessageType {
StartRequest,
EndRequest,
}
impl Display for MessageType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.serialize(f)
}
}
```
### [`v1.0.107`](https://github.com/serde-rs/serde/releases/tag/v1.0.107)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.107)
- Fix panic during macro expansion when using `serde(skip)` and `serde(other)` in the same enum ([#​1804](https://github.com/serde-rs/serde/issues/1804))
### [`v1.0.106`](https://github.com/serde-rs/serde/releases/tag/v1.0.106)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106)
- Hide dummy const implementation detail from rustdoc when documenting a binary crate ([#​1768](https://github.com/serde-rs/serde/issues/1768), thanks [@​robo9k](https://github.com/robo9k))
### [`v1.0.105`](https://github.com/serde-rs/serde/releases/tag/v1.0.105)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105)
- Allow #\[serde(borrow)] to work on non-standard `Cow` types ([#​1754](https://github.com/serde-rs/serde/issues/1754), thanks [@​maciejhirsz](https://github.com/maciejhirsz))
### [`v1.0.104`](https://github.com/serde-rs/serde/releases/tag/v1.0.104)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104)
- Revert stabilization of Serialize/Deserialize impls for `!` to account for https://github.com/rust-lang/rust/pull/67224
### [`v1.0.103`](https://github.com/serde-rs/serde/releases/tag/v1.0.103)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103)
- Support deserializing untagged unit variants from formats that treat unit as None ([#​1668](https://github.com/serde-rs/serde/issues/1668))
### [`v1.0.102`](https://github.com/serde-rs/serde/releases/tag/v1.0.102)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102)
- Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box<Path>` ([#​1656](https://github.com/serde-rs/serde/issues/1656), thanks [@​heftig](https://github.com/heftig))
### [`v1.0.101`](https://github.com/serde-rs/serde/releases/tag/v1.0.101)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101)
- Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
- Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#​1617](https://github.com/serde-rs/serde/issues/1617), thanks [@​arilotter](https://github.com/arilotter))
- Support skip attribute inside of newtype variants ([#​1622](https://github.com/serde-rs/serde/issues/1622), thanks [@​Xaeroxe](https://github.com/Xaeroxe))
### [`v1.0.100`](https://github.com/serde-rs/serde/releases/tag/v1.0.100)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100)
- Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
```rust
#[cfg(feature = "std")]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
pub trait StdError: Debug + Display {
fn source(&self) -> Option<&(StdError + 'static)> { None }
}
```
Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no_std support should generally provide their error types with a `std::error::Error` impl directly:
```rust
#[derive(Debug)]
struct MySerError {...}
impl serde::ser::Error for MySerError {...}
impl std::fmt::Display for MySerError {...}
// We don't support no_std!
impl std::error::Error for MySerError {}
```
Data formats that *do* support no_std may either have a "std" feature of their own as has been required in the past:
```toml
[features]
std = ["serde/std"]
```
```rust
#[cfg(feature = "std")]
impl std::error::Error for MySerError {}
```
... or else now may provide the std Error impl unconditionally via Serde's re-export:
```rust
impl serde::ser::StdError for MySerError {}
```
### [`v1.0.99`](https://github.com/serde-rs/serde/releases/tag/v1.0.99)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99)
- Update Syn dependency to 1.0.
*Note: This raises the minimum required compiler version for serde_derive from rustc 1.15 to rustc 1.31. The minimum required compiler version for serde remains at rustc 1.13.*
### [`v1.0.98`](https://github.com/serde-rs/serde/releases/tag/v1.0.98)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98)
- Add support for NonZeroI\* types ([#​1589](https://github.com/serde-rs/serde/issues/1589), thanks [@​Flaise](https://github.com/Flaise))
### [`v1.0.97`](https://github.com/serde-rs/serde/releases/tag/v1.0.97)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.96...v1.0.97)
- Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#​1526](https://github.com/serde-rs/serde/issues/1526), thanks [@​fanzeyi](https://github.com/fanzeyi))
```rust
#[derive(Deserialize)]
#[serde(try_from = "u32")]
enum N {
Zero,
One,
Two,
}
impl TryFrom<u32> for N {
type Error = String;
fn try_from(u: u32) -> Result<Self, Self::Error> {
match u {
0 => Ok(Self::Zero),
1 => Ok(Self::One),
2 => Ok(Self::Two),
other => Err(format!("out of range: {}", other)),
}
}
}
```
### [`v1.0.96`](https://github.com/serde-rs/serde/releases/tag/v1.0.96)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.96)
- Implement serialization and deserialization for std::sync::atomic types ([#​1572](https://github.com/serde-rs/serde/issues/1572) and [#​1581](https://github.com/serde-rs/serde/issues/1581), thanks [@​Roguelazer](https://github.com/Roguelazer))
- Make "alloc" feature work on stable Rust 1.36+ ([#​1576](https://github.com/serde-rs/serde/issues/1576), thanks [@​c410-f3r](https://github.com/c410-f3r))
### [`v1.0.95`](https://github.com/serde-rs/serde/releases/tag/v1.0.95)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.95)
*yanked*
### [`v1.0.94`](https://github.com/serde-rs/serde/releases/tag/v1.0.94)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94)
- Accept enums in input data when deserializing IgnoredAny ([#​1558](https://github.com/serde-rs/serde/issues/1558))
### [`v1.0.93`](https://github.com/serde-rs/serde/releases/tag/v1.0.93)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93)
- Allow integer keys in untagged flattened map ([#​1545](https://github.com/serde-rs/serde/issues/1545))
### [`v1.0.92`](https://github.com/serde-rs/serde/releases/tag/v1.0.92)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92)
- Support using `serde(flatten)` in no_std + alloc mode ([#​1543](https://github.com/serde-rs/serde/issues/1543), thanks [@​jplatte](https://github.com/jplatte))
### [`v1.0.91`](https://github.com/serde-rs/serde/releases/tag/v1.0.91)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91)
- Support deserializing from MapAccessDeserializer into an enum ([#​1522](https://github.com/serde-rs/serde/issues/1522))
### [`v1.0.90`](https://github.com/serde-rs/serde/releases/tag/v1.0.90)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90)
- Add an attribute `#[serde(crate = "path::to::serde")]` which replaces the use of `extern crate serde` in the generated code; this is intended for crates that invoke Serde derives from a macro and need to refer to `serde` through their own re-export rather than requiring callers to list Serde in Cargo.toml ([#​1499](https://github.com/serde-rs/serde/issues/1499), thanks [@​sgrif](https://github.com/sgrif))
```rust
#[derive(Deserialize)]
#[serde(crate = "__tw::codegen::serde")]
struct S { ... }
```
```rust
// expands to:
impl<'de> __tw::codegen::serde::Deserialize<'de> for S {
...
}
```
### [`v1.0.89`](https://github.com/serde-rs/serde/releases/tag/v1.0.89)
[Compare Source](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89)
- Implement Serialize and Deserialize for core::cmp::Reverse\<T> ([#​1486](https://github.com/serde-rs/serde/issues/1486), thanks [@​vorot93](https://github.com/vorot93))
- Fix a Clippy lint triggered within generated code involving flatten + deny_unknown_fields ([#​1492](https://github.com/serde-rs/serde/issues/1492), thanks [@​thomaseizinger](https://github.com/thomaseizinger))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
Reviewed-on: https://git.front.kjuulh.io/kjuulh/crunch/pulls/2
2023-09-24 22:06:38 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-09-24 12:18:29 +02:00
|
|
|
"syn 2.0.37",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|