Skip to content

chore(rust): bump edition to 2024, MSRV to 1.85, and update dependencies#4043

Open
if0ne wants to merge 6 commits intoapache:mainfrom
if0ne:rust/bump-version
Open

chore(rust): bump edition to 2024, MSRV to 1.85, and update dependencies#4043
if0ne wants to merge 6 commits intoapache:mainfrom
if0ne:rust/bump-version

Conversation

@if0ne
Copy link
Copy Markdown
Contributor

@if0ne if0ne commented Mar 4, 2026

Changes

  • Rust edition 2021 -> 2024 with corresponding source code fixes for new edition requirements
  • MSRV 1.81 -> 1.85 across the Rust workspace
  • Arrow crates 57.x -> 58.x (lower bound tightened from >=53.1.0 to >=58)

@if0ne if0ne requested a review from wjones127 as a code owner March 4, 2026 08:24
@if0ne if0ne marked this pull request as draft March 4, 2026 08:24
rust/Cargo.toml Outdated
edition = "2021"
rust-version = "1.81"
edition = "2024"
rust-version = "1.88"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why choose 1.88?
The constraint by arrow seems to be 1.85.
apache/arrow-rs@9d0e8be

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially, I chose 1.88 because adbc_datafusion has an MSRV of 1.88, and the cargo check produced an error when the 1.85 toolchain was selected.

@if0ne if0ne force-pushed the rust/bump-version branch from af2f86f to 8ea0a46 Compare March 4, 2026 13:24
@eitsupi
Copy link
Copy Markdown
Contributor

eitsupi commented Mar 4, 2026

I suppose some deprecation warnings can be removed.
See #3894

@if0ne if0ne changed the title chore(rust): bump edition to 2024, MSRV to 1.88, and update dependencies chore(rust): bump edition to 2024, MSRV to 1.85, and update dependencies Mar 4, 2026
if0ne added 3 commits March 29, 2026 16:16
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
@if0ne if0ne force-pushed the rust/bump-version branch from 8ea0a46 to 83cdac9 Compare March 29, 2026 13:19
if0ne added 2 commits March 29, 2026 16:39
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
Signed-off-by: if0ne <pavel.agafonov.al@gmail.com>
@if0ne if0ne force-pushed the rust/bump-version branch from b928f15 to ffabd02 Compare March 29, 2026 13:55
@if0ne if0ne marked this pull request as ready for review March 29, 2026 13:56
@if0ne
Copy link
Copy Markdown
Contributor Author

if0ne commented Mar 29, 2026

CC @eitsupi @lidavidm

@eitsupi
Copy link
Copy Markdown
Contributor

eitsupi commented Mar 29, 2026

As I've already commented, if we raise the minimum version of arrow, I think we'll need to replace the deprecated function UnionFields::new to UnionFields::try_new.

#[allow(deprecated)] // TODO: remove this once update the minimum arrow version to 57.2.0
UnionFields::new(

Signed-off-by: if0ne <pavel.agafonov.al@gmail.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