chore: Bump Rust edition to 2024#710
Conversation
…actors Upgrade workspace and crates to Rust 2024 edition and apply tool-driven fixes: - Bump Rust edition from 2021 to 2024 across workspace crates (Cargo.toml, Cargo.nix) - Update `rustls-webpki` dependency to 0.103.13 - Apply `cargo fix --edition` changes - Add `use<>` lifetime capture in `impl Trait` return types for iterators - Apply Clippy suggestions and minor refactors - Simplify iterator-returning functions with correct lifetime capture syntax - Refactor `trystream_any` to fix warning
ea1e686 to
fd0995b
Compare
There was a problem hiding this comment.
I have a bit of mixed feelings about touching rust/p12. As documented in rust/p12/README.md it's a fork of https://github.com/hjiayz/p12/. We can hopefully get rid of it eventually.
So it's nice to maintain it, on the other hand this increases the diff to upstream...
There was a problem hiding this comment.
Fair. Although I'm unsure we have really maintained it (apologies if we do, and I missed it).
In this case, shall we leave p12 on 2021? Is cargo ok with multiple workspace members using different editions?
There was a problem hiding this comment.
In this case, shall we leave p12 on 2021?
No strong opinion, I don't think it matters that much
There was a problem hiding this comment.
Hmm, I guess we can leave it on 2021 if we want it to match upstream.
There was a problem hiding this comment.
I have kept p12 on edition 2021
Explicitly selecting TryFutureExt::into_future
sbernauer
left a comment
There was a problem hiding this comment.
For me that's sufficient :)
…21 and ignore cargo warning
Upgrade workspace and crates to Rust 2024 edition and apply tool-driven fixes:
rustls-webpkidependency to 0.103.13 to fix security vulnerability warningscargo fix --editionchangesuse<>lifetime capture inimpl Traitreturn types for iteratorstrystream_anyto fix warningPart of Bump our Rust code to 2024 edition issues#832
Description
Please add a description here. This will become the commit message of the merge request later.
Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker