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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ahash"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.11"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"once_cell",
|
|
|
|
"version_check",
|
2024-09-21 02:39:12 +02:00
|
|
|
"zerocopy",
|
2023-10-02 22:27:22 +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",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "allocator-api2"
|
|
|
|
version = "0.2.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "android-tzdata"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "android_system_properties"
|
|
|
|
version = "0.1.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[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"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "0.6.4"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"anstyle",
|
|
|
|
"anstyle-parse",
|
|
|
|
"anstyle-query",
|
|
|
|
"anstyle-wincon",
|
|
|
|
"colorchoice",
|
|
|
|
"utf8parse",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "1.0.4"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87"
|
2023-09-24 12:18:29 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-parse"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "0.2.2"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"utf8parse",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-query"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-09-24 12:18:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anstyle-wincon"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "3.0.1"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"anstyle",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-09-24 12:18:29 +02:00
|
|
|
]
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"event-listener 2.5.3",
|
2023-09-24 00:44:18 +02:00
|
|
|
"futures-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "async-lock"
|
|
|
|
version = "2.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"event-listener 2.5.3",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "async-task"
|
2023-09-26 21:53:54 +02:00
|
|
|
version = "4.4.1"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-26 21:53:54 +02:00
|
|
|
checksum = "b9441c6b2fe128a7c2bf680a44c34d0df31ce09e5b7e401fcca3faa483dbc921"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-16 16:12:06 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "atoi"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528"
|
|
|
|
dependencies = [
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "atomic-waker"
|
2023-09-26 21:53:54 +02:00
|
|
|
version = "1.1.2"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-26 21:53:54 +02:00
|
|
|
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.22.1"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
2023-09-17 00:31:43 +02:00
|
|
|
|
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"
|
2023-10-02 22:27:22 +02:00
|
|
|
version = "1.6.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-02 22:27:22 +02:00
|
|
|
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
|
|
|
version = "0.10.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "blocking"
|
2023-09-26 21:53:54 +02:00
|
|
|
version = "1.4.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-26 21:53:54 +02:00
|
|
|
checksum = "94c4ef1f913d78636d78d538eec1f18de81e481f44b1be0a81060090530846e1"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"async-channel",
|
|
|
|
"async-lock",
|
|
|
|
"async-task",
|
2023-09-26 21:53:54 +02:00
|
|
|
"fastrand 2.0.1",
|
|
|
|
"futures-io",
|
2023-09-24 00:44:18 +02:00
|
|
|
"futures-lite",
|
2023-09-26 21:53:54 +02:00
|
|
|
"piper",
|
|
|
|
"tracing",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.20.0"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "441798b592f884a425e1ca386ade15c3f6d151f968446ff1d508e74b58481532"
|
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
|
|
|
dependencies = [
|
|
|
|
"embedded-io",
|
|
|
|
]
|
2023-09-17 00:31:43 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "capnpc"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.20.0"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "8d13cb6e2643fd1f9fb804ba938323636ef52e07d6e495e372d933ad0cb98207"
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.1.21"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0"
|
2023-09-16 13:23:26 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"shlex",
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "chrono"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.4.38"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"android-tzdata",
|
|
|
|
"iana-time-zone",
|
2023-10-05 22:09:56 +02:00
|
|
|
"js-sys",
|
2023-10-02 22:27:22 +02:00
|
|
|
"num-traits",
|
2023-10-05 22:09:56 +02:00
|
|
|
"serde",
|
|
|
|
"wasm-bindgen",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-targets 0.52.6",
|
2023-10-02 22:27:22 +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"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "4.4.6"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "d04704f56c2cde07f43e8e2c154b43f216dc5c92fc98ada720177362f953b956"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"clap_builder",
|
|
|
|
"clap_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clap_builder"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "4.4.6"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "0e231faeaca65ebd1ea3c737966bf858971cd38c3849107aa3ea7de90a804e45"
|
2023-09-24 12:18:29 +02:00
|
|
|
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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"heck 0.4.1",
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-24 12:18:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "2.5.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "const-oid"
|
|
|
|
version = "0.9.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crc"
|
|
|
|
version = "3.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "86ec7a15cbe22e59248fc7eadb1907dab5ba09372595da4d73dd805ed4417dfe"
|
|
|
|
dependencies = [
|
|
|
|
"crc-catalog",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crc-catalog"
|
|
|
|
version = "2.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9cace84e55f07e7301bae1c519df89cdad8cc3cd868413d3fdbdeca9ff3db484"
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-queue"
|
|
|
|
version = "0.3.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"base64 0.22.1",
|
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",
|
2023-10-02 21:49:30 +02:00
|
|
|
"crunch-envelope",
|
2023-09-23 18:21:39 +02:00
|
|
|
"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-10-02 21:49:30 +02:00
|
|
|
"uuid",
|
2023-09-23 18:21:39 +02:00
|
|
|
]
|
|
|
|
|
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-10-02 22:02:03 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crunch-postgres"
|
|
|
|
version = "0.1.0"
|
2023-10-02 22:16:15 +02:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"async-trait",
|
2023-10-05 22:09:56 +02:00
|
|
|
"chrono",
|
2023-10-02 22:16:15 +02:00
|
|
|
"crunch-envelope",
|
|
|
|
"crunch-traits",
|
|
|
|
"futures",
|
2023-10-03 23:08:12 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2023-10-02 22:27:22 +02:00
|
|
|
"sqlx",
|
2023-10-02 22:16:15 +02:00
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tokio-stream",
|
|
|
|
"tracing",
|
|
|
|
"uuid",
|
|
|
|
]
|
2023-10-02 22:02:03 +02:00
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-common"
|
|
|
|
version = "0.1.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
"typenum",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "curve25519-dalek"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "4.1.3"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"cfg-if",
|
|
|
|
"cpufeatures",
|
|
|
|
"curve25519-dalek-derive",
|
|
|
|
"digest",
|
|
|
|
"fiat-crypto",
|
|
|
|
"rustc_version",
|
2023-09-24 00:44:18 +02:00
|
|
|
"subtle",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "curve25519-dalek-derive"
|
|
|
|
version = "0.1.1"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn 2.0.77",
|
|
|
|
]
|
2023-09-24 00:44:18 +02:00
|
|
|
|
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "data-encoding"
|
|
|
|
version = "2.4.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
|
2023-10-02 22:27:22 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "der"
|
|
|
|
version = "0.7.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"const-oid",
|
|
|
|
"pem-rfc7468",
|
2023-10-02 22:27:22 +02:00
|
|
|
"zeroize",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
|
|
|
version = "0.10.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"block-buffer",
|
|
|
|
"const-oid",
|
2023-10-02 22:27:22 +02:00
|
|
|
"crypto-common",
|
|
|
|
"subtle",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "dotenvy"
|
|
|
|
version = "0.15.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "2.2.3"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"signature",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ed25519-dalek"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "2.1.1"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"curve25519-dalek",
|
|
|
|
"ed25519",
|
2024-09-21 02:39:12 +02:00
|
|
|
"sha2",
|
|
|
|
"signature",
|
|
|
|
"subtle",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
2023-09-17 00:31:43 +02:00
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.6.1"
|
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
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
|
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
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.3.9"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.52.0",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "etcetera"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"home",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
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"
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "event-listener"
|
|
|
|
version = "5.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba"
|
|
|
|
dependencies = [
|
|
|
|
"concurrent-queue",
|
|
|
|
"parking",
|
|
|
|
"pin-project-lite",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[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"
|
2023-09-26 21:53:54 +02:00
|
|
|
version = "2.0.1"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-26 21:53:54 +02:00
|
|
|
checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5"
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fiat-crypto"
|
|
|
|
version = "0.2.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "finl_unicode"
|
|
|
|
version = "1.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8fcfdc7a0362c9f4444381a9e697c79d435fe65b52a37466fc2c1184cee9edc6"
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "flume"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"spin 0.9.8",
|
|
|
|
]
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futures-intrusive"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"lock_api",
|
|
|
|
"parking_lot",
|
|
|
|
]
|
|
|
|
|
2023-09-22 21:31:32 +02:00
|
|
|
[[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 = [
|
|
|
|
"futures-core",
|
|
|
|
"pin-project-lite",
|
|
|
|
]
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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",
|
|
|
|
]
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fuzzy-matcher"
|
|
|
|
version = "0.3.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94"
|
|
|
|
dependencies = [
|
|
|
|
"thread_local",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fxhash"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
]
|
|
|
|
|
2023-09-24 16:27:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "genco"
|
2023-09-25 23:06:12 +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 23:06:12 +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 23:06:12 +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 23:06:12 +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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.14.5"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"ahash",
|
|
|
|
"allocator-api2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "hashlink"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.9.1"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"hashbrown",
|
|
|
|
]
|
2023-09-24 12:18:29 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
2024-09-21 02:39:12 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
2023-09-24 12:18:29 +02:00
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
|
|
|
version = "0.4.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "hkdf"
|
|
|
|
version = "0.12.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437"
|
|
|
|
dependencies = [
|
|
|
|
"hmac",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "hmac"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
2023-10-02 22:27:22 +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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.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
|
|
|
]
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "iana-time-zone"
|
|
|
|
version = "0.1.57"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
|
|
|
|
dependencies = [
|
|
|
|
"android_system_properties",
|
|
|
|
"core-foundation-sys",
|
|
|
|
"iana-time-zone-haiku",
|
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"windows",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "iana-time-zone-haiku"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
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"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "2.0.2"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897"
|
2023-09-24 12:18:29 +02:00
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.7.5"
|
2023-09-25 21:03:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a"
|
2023-09-25 21:03:58 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"bitflags 2.4.0",
|
2023-09-25 21:03:58 +02:00
|
|
|
"crossterm",
|
|
|
|
"dyn-clone",
|
2024-09-21 02:39:12 +02:00
|
|
|
"fuzzy-matcher",
|
|
|
|
"fxhash",
|
2023-09-25 21:03:58 +02:00
|
|
|
"newline-converter",
|
2024-09-21 02:39:12 +02:00
|
|
|
"once_cell",
|
2023-09-25 21:03:58 +02:00
|
|
|
"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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
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-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"spin 0.5.2",
|
|
|
|
]
|
2023-09-16 16:12:06 +02:00
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libc"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.2.158"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libm"
|
|
|
|
version = "0.2.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libsqlite3-sys"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.30.1"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "linux-raw-sys"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.4.14"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
2023-09-19 08:31:13 +02:00
|
|
|
|
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
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "md-5"
|
|
|
|
version = "0.10.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "memchr"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "2.6.4"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "minimal-lexical"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.25.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "19090dd06e27eb59adfd16f332b85818a3e7dbbdbc13c448676c9bb69f964208"
|
2023-09-24 00:44:18 +02:00
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"portable-atomic",
|
2023-09-24 00:44:18 +02:00
|
|
|
"regex",
|
|
|
|
"ring",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls 0.22.4",
|
2023-09-24 00:44:18 +02:00
|
|
|
"rustls-native-certs",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pemfile",
|
|
|
|
"rustls-webpki",
|
2023-09-24 00:44:18 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"serde_nanos",
|
|
|
|
"serde_repr",
|
|
|
|
"time",
|
|
|
|
"url",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2023-09-25 21:03:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "newline-converter"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.3.0"
|
2023-09-25 21:03:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "47b6b097ecb1cbfed438542d16e84fd7ad9b0c76c8a65b7f9039212a3d14dc7f"
|
2023-09-25 21:03:58 +02:00
|
|
|
dependencies = [
|
|
|
|
"unicode-segmentation",
|
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nkeys"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.4.4"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "9f49e787f4c61cbd0f9320b31cc26e58719f6aa5068e34697dd3aea361412fe3"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"data-encoding",
|
2024-09-21 02:39:12 +02:00
|
|
|
"ed25519",
|
2023-09-24 00:44:18 +02:00
|
|
|
"ed25519-dalek",
|
|
|
|
"getrandom",
|
|
|
|
"log",
|
|
|
|
"rand",
|
|
|
|
"signatory",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "nom"
|
|
|
|
version = "7.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
"minimal-lexical",
|
|
|
|
]
|
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "num-bigint-dig"
|
|
|
|
version = "0.8.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
"lazy_static",
|
|
|
|
"libm",
|
|
|
|
"num-integer",
|
|
|
|
"num-iter",
|
|
|
|
"num-traits",
|
|
|
|
"rand",
|
|
|
|
"smallvec",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "num-integer"
|
|
|
|
version = "0.1.45"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "num-iter"
|
|
|
|
version = "0.1.43"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"num-integer",
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
"libm",
|
2023-09-17 00:31:43 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.19.0"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
2023-09-16 13:23:26 +02:00
|
|
|
|
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 = "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"
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "parking"
|
|
|
|
version = "2.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-targets 0.48.5",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "paste"
|
|
|
|
version = "1.0.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pem-rfc7468"
|
2023-10-02 22:27:22 +02:00
|
|
|
version = "0.7.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-02 22:27:22 +02:00
|
|
|
checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
|
2023-09-24 00:44:18 +02:00
|
|
|
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-26 21:53:54 +02:00
|
|
|
[[package]]
|
|
|
|
name = "piper"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4"
|
|
|
|
dependencies = [
|
|
|
|
"atomic-waker",
|
|
|
|
"fastrand 2.0.1",
|
|
|
|
"futures-io",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pkcs1"
|
|
|
|
version = "0.7.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"der",
|
|
|
|
"pkcs8",
|
|
|
|
"spki",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pkcs8"
|
|
|
|
version = "0.10.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"der",
|
|
|
|
"spki",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pkg-config"
|
|
|
|
version = "0.3.27"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "portable-atomic"
|
|
|
|
version = "1.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d30538d42559de6b034bc76fd6dd4c38961b1ee5c6c56e3808c50128fdbc22ce"
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 13:23:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro2"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.0.86"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"heck 0.4.1",
|
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
|
|
|
"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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.0.37"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rand_core",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
|
|
|
version = "0.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
|
|
|
dependencies = [
|
|
|
|
"ppv-lite86",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rand_core",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "1.9.6"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "ebee201405406dbf528b8b672104ae6d6d63e6d118cb10e4d51abbc7b58044ff"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
|
|
|
"regex-automata",
|
|
|
|
"regex-syntax",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "regex-automata"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "0.3.9"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "59b23e92ee4318893fa3fe3e6fb365258efbfe6ac6ab30f090cdcbb7aa37efa9"
|
2023-09-17 00:31:43 +02:00
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.17.8"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
2024-09-21 02:39:12 +02:00
|
|
|
"cfg-if",
|
|
|
|
"getrandom",
|
2023-09-24 00:44:18 +02:00
|
|
|
"libc",
|
2024-09-21 02:39:12 +02:00
|
|
|
"spin 0.9.8",
|
2023-09-24 00:44:18 +02:00
|
|
|
"untrusted",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.52.0",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rsa"
|
|
|
|
version = "0.9.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6ab43bb47d23c1a631b4b680199a45255dce26fa9ab2fa902581f624ff13e6a8"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2024-09-21 02:39:12 +02:00
|
|
|
"const-oid",
|
|
|
|
"digest",
|
2023-10-02 22:27:22 +02:00
|
|
|
"num-bigint-dig",
|
|
|
|
"num-integer",
|
|
|
|
"num-iter",
|
|
|
|
"num-traits",
|
|
|
|
"pkcs1",
|
2024-09-21 02:39:12 +02:00
|
|
|
"pkcs8",
|
|
|
|
"rand_core",
|
|
|
|
"signature",
|
|
|
|
"spki",
|
2023-10-02 22:27:22 +02:00
|
|
|
"subtle",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_version"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
|
|
dependencies = [
|
|
|
|
"semver",
|
|
|
|
]
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustix"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.38.37"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
|
|
|
"bitflags 2.4.0",
|
|
|
|
"errno",
|
|
|
|
"libc",
|
|
|
|
"linux-raw-sys",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.52.0",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.22.4"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"log",
|
|
|
|
"ring",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pki-types",
|
|
|
|
"rustls-webpki",
|
|
|
|
"subtle",
|
|
|
|
"zeroize",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.23.13"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"once_cell",
|
2023-10-02 22:27:22 +02:00
|
|
|
"ring",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pki-types",
|
2023-10-02 22:27:22 +02:00
|
|
|
"rustls-webpki",
|
2024-09-21 02:39:12 +02:00
|
|
|
"subtle",
|
|
|
|
"zeroize",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-native-certs"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.7.3"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"openssl-probe",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pemfile",
|
|
|
|
"rustls-pki-types",
|
2023-09-24 00:44:18 +02:00
|
|
|
"schannel",
|
|
|
|
"security-framework",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls-pemfile"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "2.1.3"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"base64 0.22.1",
|
|
|
|
"rustls-pki-types",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "rustls-pki-types"
|
|
|
|
version = "1.8.0"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0"
|
2023-10-02 22:27:22 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls-webpki"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.102.8"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"ring",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pki-types",
|
2023-10-02 22:27:22 +02:00
|
|
|
"untrusted",
|
|
|
|
]
|
|
|
|
|
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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
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 = "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",
|
|
|
|
]
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "1.0.23"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
|
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.0.210"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_derive"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.0.210"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
|
2023-09-17 00:31:43 +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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-17 00:31:43 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_json"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "1.0.128"
|
2023-09-17 00:31:43 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
|
2023-09-17 00:31:43 +02:00
|
|
|
dependencies = [
|
|
|
|
"itoa",
|
2024-09-21 02:39:12 +02:00
|
|
|
"memchr",
|
2023-09-17 00:31:43 +02:00
|
|
|
"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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-24 12:18:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_spanned"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.6.7"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "serde_urlencoded"
|
|
|
|
version = "0.7.1"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"form_urlencoded",
|
|
|
|
"itoa",
|
|
|
|
"ryu",
|
|
|
|
"serde",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "sha1"
|
|
|
|
version = "0.10.6"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"cpufeatures",
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sha2"
|
|
|
|
version = "0.10.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"cpufeatures",
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sharded-slab"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "0.1.6"
|
2023-09-16 16:12:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "c1b21f559e07218024e7e9f90f96f601825397de0e25420135f7f952453fed0b"
|
2023-09-16 16:12:06 +02:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "shlex"
|
|
|
|
version = "1.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.27.1"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "c1e303f8205714074f6068773f0e29527e0453937fe837c9717d066635b65f31"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"pkcs8",
|
|
|
|
"rand_core",
|
|
|
|
"signature",
|
2023-09-24 00:44:18 +02:00
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "signature"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
|
|
|
"rand_core",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
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"
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "spin"
|
|
|
|
version = "0.9.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
|
|
|
|
dependencies = [
|
|
|
|
"lock_api",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "spki"
|
|
|
|
version = "0.7.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a"
|
|
|
|
dependencies = [
|
|
|
|
"base64ct",
|
2024-09-21 02:39:12 +02:00
|
|
|
"der",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlformat"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6b7b278788e7be4d0d29c0f39497a0eef3fba6bbc8e70d8bf7fde46edeaa9e85"
|
|
|
|
dependencies = [
|
|
|
|
"itertools 0.11.0",
|
|
|
|
"nom",
|
|
|
|
"unicode_categories",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "93334716a037193fac19df402f8571269c84a00852f6a7066b5d2616dcd64d3e"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"sqlx-core",
|
|
|
|
"sqlx-macros",
|
|
|
|
"sqlx-mysql",
|
|
|
|
"sqlx-postgres",
|
|
|
|
"sqlx-sqlite",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-core"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "d4d8060b456358185f7d50c55d9b5066ad956956fddec42ee2e8567134a8936e"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"atoi",
|
|
|
|
"byteorder",
|
|
|
|
"bytes",
|
|
|
|
"chrono",
|
|
|
|
"crc",
|
|
|
|
"crossbeam-queue",
|
|
|
|
"either",
|
2024-09-21 02:39:12 +02:00
|
|
|
"event-listener 5.3.1",
|
2023-10-02 22:27:22 +02:00
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-intrusive",
|
|
|
|
"futures-io",
|
|
|
|
"futures-util",
|
2024-09-21 02:39:12 +02:00
|
|
|
"hashbrown",
|
2023-10-02 22:27:22 +02:00
|
|
|
"hashlink",
|
|
|
|
"hex",
|
|
|
|
"indexmap",
|
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"once_cell",
|
|
|
|
"paste",
|
|
|
|
"percent-encoding",
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls 0.23.13",
|
|
|
|
"rustls-pemfile",
|
2023-10-02 22:27:22 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2024-09-21 02:39:12 +02:00
|
|
|
"sha2",
|
2023-10-02 22:27:22 +02:00
|
|
|
"smallvec",
|
|
|
|
"sqlformat",
|
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tokio-stream",
|
|
|
|
"tracing",
|
|
|
|
"url",
|
2023-10-03 23:08:12 +02:00
|
|
|
"uuid",
|
2023-10-02 22:27:22 +02:00
|
|
|
"webpki-roots",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-macros"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "cac0692bcc9de3b073e8d747391827297e075c7710ff6276d9f7a1f3d58c6657"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"sqlx-core",
|
|
|
|
"sqlx-macros-core",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-macros-core"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "1804e8a7c7865599c9c79be146dc8a9fd8cc86935fa641d3ea58e5f0688abaa5"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"dotenvy",
|
|
|
|
"either",
|
2024-09-21 02:39:12 +02:00
|
|
|
"heck 0.5.0",
|
2023-10-02 22:27:22 +02:00
|
|
|
"hex",
|
|
|
|
"once_cell",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2024-09-21 02:39:12 +02:00
|
|
|
"sha2",
|
2023-10-02 22:27:22 +02:00
|
|
|
"sqlx-core",
|
|
|
|
"sqlx-mysql",
|
|
|
|
"sqlx-postgres",
|
|
|
|
"sqlx-sqlite",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-10-02 22:27:22 +02:00
|
|
|
"tempfile",
|
|
|
|
"tokio",
|
|
|
|
"url",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-mysql"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "64bb4714269afa44aef2755150a0fc19d756fb580a67db8885608cf02f47d06a"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"atoi",
|
2024-09-21 02:39:12 +02:00
|
|
|
"base64 0.22.1",
|
2023-10-02 22:27:22 +02:00
|
|
|
"bitflags 2.4.0",
|
|
|
|
"byteorder",
|
|
|
|
"bytes",
|
|
|
|
"chrono",
|
|
|
|
"crc",
|
2024-09-21 02:39:12 +02:00
|
|
|
"digest",
|
2023-10-02 22:27:22 +02:00
|
|
|
"dotenvy",
|
|
|
|
"either",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-io",
|
|
|
|
"futures-util",
|
|
|
|
"generic-array",
|
|
|
|
"hex",
|
|
|
|
"hkdf",
|
|
|
|
"hmac",
|
|
|
|
"itoa",
|
|
|
|
"log",
|
|
|
|
"md-5",
|
|
|
|
"memchr",
|
|
|
|
"once_cell",
|
|
|
|
"percent-encoding",
|
|
|
|
"rand",
|
|
|
|
"rsa",
|
|
|
|
"serde",
|
|
|
|
"sha1",
|
2024-09-21 02:39:12 +02:00
|
|
|
"sha2",
|
2023-10-02 22:27:22 +02:00
|
|
|
"smallvec",
|
|
|
|
"sqlx-core",
|
|
|
|
"stringprep",
|
|
|
|
"thiserror",
|
|
|
|
"tracing",
|
2023-10-03 23:08:12 +02:00
|
|
|
"uuid",
|
2023-10-02 22:27:22 +02:00
|
|
|
"whoami",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-postgres"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "6fa91a732d854c5d7726349bb4bb879bb9478993ceb764247660aee25f67c2f8"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"atoi",
|
2024-09-21 02:39:12 +02:00
|
|
|
"base64 0.22.1",
|
2023-10-02 22:27:22 +02:00
|
|
|
"bitflags 2.4.0",
|
|
|
|
"byteorder",
|
|
|
|
"chrono",
|
|
|
|
"crc",
|
|
|
|
"dotenvy",
|
|
|
|
"etcetera",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-io",
|
|
|
|
"futures-util",
|
|
|
|
"hex",
|
|
|
|
"hkdf",
|
|
|
|
"hmac",
|
|
|
|
"home",
|
|
|
|
"itoa",
|
|
|
|
"log",
|
|
|
|
"md-5",
|
|
|
|
"memchr",
|
|
|
|
"once_cell",
|
|
|
|
"rand",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2024-09-21 02:39:12 +02:00
|
|
|
"sha2",
|
2023-10-02 22:27:22 +02:00
|
|
|
"smallvec",
|
|
|
|
"sqlx-core",
|
|
|
|
"stringprep",
|
|
|
|
"thiserror",
|
|
|
|
"tracing",
|
2023-10-03 23:08:12 +02:00
|
|
|
"uuid",
|
2023-10-02 22:27:22 +02:00
|
|
|
"whoami",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-sqlite"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.8.2"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "d5b2cf34a45953bfd3daaf3db0f7a7878ab9b7a6b91b422d24a7a9e4c857b680"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
|
|
|
"atoi",
|
|
|
|
"chrono",
|
|
|
|
"flume",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-executor",
|
|
|
|
"futures-intrusive",
|
|
|
|
"futures-util",
|
|
|
|
"libsqlite3-sys",
|
|
|
|
"log",
|
|
|
|
"percent-encoding",
|
|
|
|
"serde",
|
2024-09-21 02:39:12 +02:00
|
|
|
"serde_urlencoded",
|
2023-10-02 22:27:22 +02:00
|
|
|
"sqlx-core",
|
|
|
|
"tracing",
|
|
|
|
"url",
|
2023-10-03 23:08:12 +02:00
|
|
|
"uuid",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "stringprep"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bb41d74e231a107a1b4ee36bd1214b11285b77768d2e3824aedafa988fd36ee6"
|
|
|
|
dependencies = [
|
|
|
|
"finl_unicode",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "2.0.77"
|
2023-09-16 13:23:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "3.12.0"
|
2023-09-19 08:31:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64"
|
2023-09-19 08:31:13 +02:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2023-09-26 21:53:54 +02:00
|
|
|
"fastrand 2.0.1",
|
2024-09-21 02:39:12 +02:00
|
|
|
"once_cell",
|
2023-09-19 08:31:13 +02:00
|
|
|
"rustix",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.59.0",
|
2023-09-19 08:31:13 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "thiserror"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "1.0.49"
|
2023-09-16 16:12:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4"
|
2023-09-16 16:12:06 +02:00
|
|
|
dependencies = [
|
|
|
|
"thiserror-impl",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror-impl"
|
2023-10-01 22:35:07 +02:00
|
|
|
version = "1.0.49"
|
2023-09-16 16:12:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-10-01 22:35:07 +02:00
|
|
|
checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc"
|
2023-09-16 16:12: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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-sys 0.48.0",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.6.8"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
|
2023-09-24 12:18:29 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "toml_edit"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.22.20"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d"
|
2023-09-24 12:18:29 +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
|
|
|
"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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode_categories"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
|
|
|
|
|
2023-09-24 00:44:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "untrusted"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.9.0"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
2023-09-24 00:44:18 +02:00
|
|
|
|
|
|
|
[[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-10-05 22:09:56 +02:00
|
|
|
"serde",
|
2023-09-22 21:31:32 +02:00
|
|
|
]
|
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "vcpkg"
|
|
|
|
version = "0.2.15"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
|
|
|
|
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"
|
|
|
|
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "webpki-roots"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.26.6"
|
2023-10-02 22:27:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958"
|
2023-10-02 22:27:22 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"rustls-pki-types",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
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-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "whoami"
|
|
|
|
version = "1.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "22fc3756b8a9133049b26c7f61ab35416c130e8c09b660f5b3958b446f52cc50"
|
|
|
|
|
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"
|
|
|
|
|
2023-10-02 22:27:22 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
|
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-targets 0.48.5",
|
2023-10-02 22:27:22 +02:00
|
|
|
]
|
|
|
|
|
2023-09-16 16:12:06 +02:00
|
|
|
[[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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows-targets 0.48.5",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows-sys"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
|
|
|
dependencies = [
|
|
|
|
"windows-targets 0.52.6",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows-sys"
|
|
|
|
version = "0.59.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
|
|
|
dependencies = [
|
|
|
|
"windows-targets 0.52.6",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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 = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"windows_aarch64_gnullvm 0.48.5",
|
|
|
|
"windows_aarch64_msvc 0.48.5",
|
|
|
|
"windows_i686_gnu 0.48.5",
|
|
|
|
"windows_i686_msvc 0.48.5",
|
|
|
|
"windows_x86_64_gnu 0.48.5",
|
|
|
|
"windows_x86_64_gnullvm 0.48.5",
|
|
|
|
"windows_x86_64_msvc 0.48.5",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows-targets"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
|
|
dependencies = [
|
|
|
|
"windows_aarch64_gnullvm 0.52.6",
|
|
|
|
"windows_aarch64_msvc 0.52.6",
|
|
|
|
"windows_i686_gnu 0.52.6",
|
|
|
|
"windows_i686_gnullvm",
|
|
|
|
"windows_i686_msvc 0.52.6",
|
|
|
|
"windows_x86_64_gnu 0.52.6",
|
|
|
|
"windows_x86_64_gnullvm 0.52.6",
|
|
|
|
"windows_x86_64_msvc 0.52.6",
|
2023-09-16 13:23:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_gnullvm"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_msvc"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnu"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnullvm"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_msvc"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnu"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnullvm"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
|
|
|
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
|
|
|
|
2024-09-21 02:39:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_msvc"
|
|
|
|
version = "0.52.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
|
|
|
2023-09-24 12:18:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "winnow"
|
2024-09-21 02:39:12 +02:00
|
|
|
version = "0.6.18"
|
2023-09-24 12:18:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f"
|
2023-09-24 12:18:29 +02:00
|
|
|
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]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "zerocopy"
|
|
|
|
version = "0.7.35"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
2023-09-24 00:44:18 +02:00
|
|
|
dependencies = [
|
2024-09-21 02:39:12 +02:00
|
|
|
"zerocopy-derive",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2024-09-21 02:39:12 +02:00
|
|
|
name = "zerocopy-derive"
|
|
|
|
version = "0.7.35"
|
2023-09-24 00:44:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-09-21 02:39:12 +02:00
|
|
|
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
2023-09-24 00:44:18 +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",
|
2024-09-21 02:39:12 +02:00
|
|
|
"syn 2.0.77",
|
2023-09-24 00:44:18 +02:00
|
|
|
]
|
2024-09-21 02:39:12 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "zeroize"
|
|
|
|
version = "1.8.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|