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

Switch to Rust edition 2018 #1401

Merged
merged 9 commits into from
Jan 1, 2021
Merged

Switch to Rust edition 2018 #1401

merged 9 commits into from
Jan 1, 2021

Conversation

jplatte
Copy link
Contributor

@jplatte jplatte commented Dec 31, 2020

The openssl-errors crate was already on the 2018 edition, and openssl-sys can't be updated without breaking the tests as ctest doesn't support modern Rust features.

@sfackler
Copy link
Owner

Thanks! Yeah, I think ctest needs to be replaced entirely with something that hooks directly into the compiler for info rather than trying to hackily parse it itself, but that's another project.

Looks like you need to allow clippy::unusual_byte_groupings in the build script.

This was mostly automated using `cargo fix --edition`, except imports of
openssl_sys (renamed to ffi) were converted to crate::ffi, which was
reverted.

The same thing is not done for the openssl-sys crate because this breaks
ctest (used in systest to verify the -sys crate), see
gnzlbg/ctest#70
This was mostly automated using `cargo fix --edition-idioms`.
@sfackler sfackler merged commit 5831928 into sfackler:master Jan 1, 2021
@jplatte jplatte deleted the edition2018 branch January 1, 2021 14:22
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