in-toto / in-toto-rs

A rust implementation of in-toto
MIT License
32 stars 14 forks source link

Update Rust Edition to 2021 #78

Closed alanssitis closed 11 months ago

alanssitis commented 1 year ago

Update to latest Rust edition. The next edition is 2024.

There are no breaking changes, and it adds more consistency to the overall language. In order to miminize the risk of introducing "outdated" idioms to the implementation, updated the edition to 2021.

adityasaky commented 1 year ago

What's the implication of bumping up the edition wrt compat?

alanssitis commented 12 months ago

There are issues with the crate being unable to build on earlier compiler versions. However, this was a significant concern when it first came out in 2021. We are almost three years from the release, so this should not be a concern.

https://doc.rust-lang.org/edition-guide/editions/index.html discusses how crates of different editions have "seamless interoperability."