Skip to content

build: upgrade to Rust 1.90+ and edition 2024 - #325

Closed
Tim-Zhang wants to merge 3 commits into
masterfrom
chore-rust-2024-master
Closed

Tim-Zhang wants to merge 3 commits into
masterfrom
chore-rust-2024-master

Conversation

@Tim-Zhang

Copy link
Copy Markdown
Member

All workspace members and both standalone Prost crates now use Rust 2024 and resolver 3, with Rust 1.90 as the minimum supported version (previously 1.70 for the runtime). The development toolchain stays pinned to Rust 1.95.0.

Adapt reserved identifiers, macro fragments, unsafe calls, and temporary lifetimes, and address Clippy checks enabled by the new edition and minimum Rust version. Dependency setup uses the repository toolchain without changing the global default, and the toolchain components include rust-analyzer.

The three commits separate toolchain setup, edition and MSRV compatibility, and formatting.

Validation:

  • Rust 1.90 workspace tests, Prost tests, and example compilation passed.
  • Formatting and Clippy checks passed, including targeted Linux/Windows checks.
  • Review found no actionable regressions.

Keep dependency setup on the repository toolchain instead of updating
stable and changing the user's global default. Include rust-analyzer in
the pinned Rust 1.95.0 toolchain components.

Signed-off-by: Tim Zhang <tim@hyper.sh>
Use edition 2024 and resolver 3 across the workspace and standalone
prost crates. Set and inherit Rust 1.90 as the minimum supported
version.

Adapt reserved identifiers, macro fragments, unsafe calls, and temporary
lifetimes. Address Clippy checks enabled by the new edition and minimum
Rust version. Retain style edition 2021 until the formatting-only
commit.

Signed-off-by: Tim Zhang <tim@hyper.sh>
Remove the temporary style edition override and apply Rust 2024
formatting across the workspace and standalone prost crates.

Signed-off-by: Tim Zhang <tim@hyper.sh>
@Tim-Zhang Tim-Zhang changed the title build: migrate all crates to Rust 2024 build: adopt edition 2024 and require Rust 1.90 or newer Sep 14, 2026
@Tim-Zhang Tim-Zhang changed the title build: adopt edition 2024 and require Rust 1.90 or newer build: upgrade to Rust 1.90+ and edition 2024 Sep 14, 2026
@Tim-Zhang Tim-Zhang closed this Sep 14, 2026
@Tim-Zhang
Tim-Zhang deleted the chore-rust-2024-master branch September 15, 2026 09:11
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.

1 participant