Skip to content

Bump rust edition to 2024, rust version to 1.85#515

Merged
alamb merged 4 commits into
apache:mainfrom
AdamGS:adamg/bump-msrv-1-67-1
Oct 28, 2025
Merged

Bump rust edition to 2024, rust version to 1.85#515
alamb merged 4 commits into
apache:mainfrom
AdamGS:adamg/bump-msrv-1-67-1

Conversation

@AdamGS

@AdamGS AdamGS commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Unlocks #514.

Rationale for this change

90% of downloads use 1.85, and 2024 unlocks future msrv bumps.

What changes are included in this PR?

Bumping rust edition and msrv.

Are there any user-facing changes?

Increasing the msrv might have an impact on some dependencies and users, but I assume the vast majority of them will be fine with upgrading (For example - DataFusion is at 1.86 and arrow-rs is at 1.85).

@Xuanwo

Xuanwo commented Oct 21, 2025

Copy link
Copy Markdown
Member

Arrow-rs is bumped to edition 2024, and 1.85 is now used by 90% of downloads based on stats from https://lib.rs/stats. I believe it's fair to bump to 2024 now. Another advantage of edition 2024 is that raising the MSRV is no longer a breaking change, making this a one shot solution.

@AdamGS

AdamGS commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

good points, I'll have that later today/tomorrow

@AdamGS

AdamGS commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

Ok pushed it, bumped msrv to 1.85 and the rust edition to 2024.

@AdamGS AdamGS changed the title Bump the msrv to 1.67.1 Bump rust edition to 2024 Oct 21, 2025
@AdamGS

AdamGS commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

most of the change is just the new rutfmt ordering, other than that its just a few clippy warnings

@alamb alamb changed the title Bump rust edition to 2024 Bump rust edition to 2024, rust version to 1.85 Oct 23, 2025

@alamb alamb left a comment

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.

Since this increases the MSRV woudl that make it a breaking change (aka we can only release this as part of a major release)?

@alamb

alamb commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

Thanks @AdamGS and @Xuanwo

@kylebarron

Copy link
Copy Markdown
Member

IIRC MSRV updates are considered to be "non-breaking", though I can't recall a canonical source for that.

@alamb

alamb commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

IIRC MSRV updates are considered to be "non-breaking", though I can't recall a canonical source for that.

Here is one source:

Though it has a lot of discussion which I didn't read

@Xuanwo

Xuanwo commented Oct 23, 2025

Copy link
Copy Markdown
Member

Yes, it's considered a non-breaking change. But only after edition 2024 it becomes a really non-harmful thing thanks to https://doc.rust-lang.org/edition-guide/rust-2024/cargo-resolver.html

So my suggestion is that we still treat this change as a breaking one and after this PR, we can bump MSRV freely.

@alamb

alamb commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

So shall we merge this one in and plan to cut a new major release of object_store?

@AdamGS

AdamGS commented Oct 28, 2025

Copy link
Copy Markdown
Contributor Author

Should I also remove the --precise pining in the msrv check in CI?

@kylebarron

Copy link
Copy Markdown
Member

It would be great if we could remove that section

@AdamGS AdamGS force-pushed the adamg/bump-msrv-1-67-1 branch from 843dd72 to 1495da2 Compare October 28, 2025 14:55
@alamb

alamb commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Sounds great -- I will plan on making a new release in Nov

@alamb alamb merged commit ddb5d2a into apache:main Oct 28, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants