Skip to content

chore: update rust edition and version to 2024 and 1.88, respectively#2525

Merged
dfawley merged 8 commits into
grpc:masterfrom
dfawley:edition
Feb 27, 2026
Merged

chore: update rust edition and version to 2024 and 1.88, respectively#2525
dfawley merged 8 commits into
grpc:masterfrom
dfawley:edition

Conversation

@dfawley

@dfawley dfawley commented Feb 26, 2026

Copy link
Copy Markdown
Member

In an upcoming change to the grpc crate, I'd like to make use of 2024's if-let chains. Edition 2024 requires rust v1.85, but if-let chains weren't stabilized until 1.88. This was released Jun 2025, meaning we are within Tonic's MSRV policy (which "unofficially" matches Tokio's).

There is a desire to keep this repo uniform, so I have updated all public crates and cargo fixed anything requiring it, and also made every crate specify the workspace's rust-version.

@dfawley dfawley changed the title chore: update rust edition and version to 2024 and 1.86, respectively chore: update rust edition and version to 2024 and 1.88, respectively Feb 26, 2026
@dfawley dfawley merged commit 76b347d into grpc:master Feb 27, 2026
21 checks passed
@dfawley dfawley deleted the edition branch February 27, 2026 00:03
YutaoMa added a commit that referenced this pull request Mar 19, 2026
## Motivation

With recent update to Rust edition 2024 (#2525) `cargo clippy` now warns
about collapsible if chains.

## Solution

This PR collapses the if chains.
@github-actions github-actions Bot mentioned this pull request May 4, 2026
LucioFranco pushed a commit that referenced this pull request May 7, 2026
## 🤖 New release

* `tonic`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-build`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-prost`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-health`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-types`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-reflection`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-prost-build`: 0.14.5 -> 0.14.6 (✓ API compatible changes)
* `tonic-web`: 0.14.5 -> 0.14.6 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

## `tonic`

<blockquote>

##
[0.14.6](tonic-v0.14.5...tonic-v0.14.6)
- 2026-05-06

### Added

- *(transport/channel)* expose ServerCertVerifier API
([#2612](#2612))

### Fixed

- map no trailers ok status to unknown
([#2543](#2543))

### Other

- add max_frame_size to client Endpoint
([#2592](#2592))
- Allow setting the HTTP/2 client header table size
([#2582](#2582))
- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-build`

<blockquote>

##
[0.14.6](tonic-build-v0.14.5...tonic-build-v0.14.6)
- 2026-05-06

### Other

- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-prost`

<blockquote>

##
[0.14.6](tonic-prost-v0.14.5...tonic-prost-v0.14.6)
- 2026-05-06

### Other

- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-health`

<blockquote>

##
[0.14.6](tonic-health-v0.14.5...tonic-health-v0.14.6)
- 2026-05-06

### Other

- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-types`

<blockquote>

##
[0.14.6](tonic-types-v0.14.5...tonic-types-v0.14.6)
- 2026-05-06

### Other

- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-reflection`

<blockquote>

##
[0.14.6](tonic-reflection-v0.14.5...tonic-reflection-v0.14.6)
- 2026-05-06

### Other

- fix panic when client drops connection early
([#2596](#2596))
- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-prost-build`

<blockquote>

##
[0.14.6](tonic-prost-build-v0.14.5...tonic-prost-build-v0.14.6)
- 2026-05-06

### Other

- Support well known types resolved by prost to their rust counterparts
([#2544](#2544))
- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>

## `tonic-web`

<blockquote>

##
[0.14.6](tonic-web-v0.14.5...tonic-web-v0.14.6)
- 2026-05-06

### Other

- update rust edition and version to 2024 and 1.88, respectively
([#2525](#2525))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants