Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all crates to the 2024 edition and bump MSRV to 1.85 #472

Merged
merged 9 commits into from
Feb 28, 2025

Conversation

baloo
Copy link
Member

@baloo baloo commented Feb 23, 2025

No description provided.

@baloo baloo changed the title Upgrade all crates to the edition2024 and bump MSRV to 1.85 Upgrade all crates to the 2024 edition and bump MSRV to 1.85 Feb 23, 2025
@baloo baloo force-pushed the baloo/edition-2024 branch 2 times, most recently from d5fe39a to 7b79d26 Compare February 23, 2025 04:21
@baloo baloo force-pushed the baloo/edition-2024 branch 3 times, most recently from e09b3dd to 66b672d Compare February 23, 2025 05:07
Copy link
Member

@newpavlov newpavlov left a comment

Choose a reason for hiding this comment

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

You also need to update hex-literal to v1.

@baloo baloo force-pushed the baloo/edition-2024 branch 2 times, most recently from 01ee216 to 7eb7c05 Compare February 23, 2025 05:57
aes/src/lib.rs Outdated
@@ -115,6 +115,7 @@
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs, rust_2018_idioms)]
#![allow(unsafe_op_in_unsafe_fn)]
Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to do this allow on the per-module basis like I did in the hashes PR. With potential target_feature improvements (which would make some intrinsics safe inside functions with with enabled target features) we may enable this lint back.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ha, I've tried to read the patch for hashes, but github UI is very slow. I've thought you've used a big unsafe{ block, but that was only in sha1, I should have kept reading, my bad.

Copy link
Member

Choose a reason for hiding this comment

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

I did it in the initial commits, but then switched to #[allow(..)]. For example here I enable it for the function and here for the whole module.

@baloo baloo force-pushed the baloo/edition-2024 branch from 7eb7c05 to cc3c0c0 Compare February 23, 2025 06:18
@newpavlov newpavlov merged commit 70fe50a into RustCrypto:master Feb 28, 2025
161 checks passed
@baloo baloo deleted the baloo/edition-2024 branch February 28, 2025 03:23
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