-
Notifications
You must be signed in to change notification settings - Fork 238
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 project to edition 2018 #389
Conversation
curl-sys/lib.rs
Outdated
extern crate libc; | ||
// These `extern crate` are required for conditional linkages of curl. | ||
#[cfg(link_libnghttp2)] | ||
extern crate libnghttp2_sys; | ||
#[cfg(link_libz)] | ||
extern crate libz_sys; | ||
#[cfg(feature = "mesalink")] | ||
extern crate mesalink; // ensure lib is linked to | ||
#[cfg(link_openssl)] | ||
extern crate openssl_sys; | ||
#[cfg(windows)] | ||
extern crate winapi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we preserve extern crate
for openssl_sys, libnghttp2_sys and libz_sys for the sake of conditional linkage.
Really weird. It seems that all CI tests has passed. https://github.com/alexcrichton/curl-rust/actions/runs/805297756 |
#[cfg(link_libnghttp2)] | ||
extern crate libnghttp2_sys; | ||
#[cfg(link_libz)] | ||
extern crate libz_sys; | ||
#[cfg(feature = "mesalink")] | ||
extern crate mesalink; // ensure lib is linked to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to remain for the linkage too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not? I thought it would be linked automatically when feature "mesalink" is on. Anyway, updated at 5768b0b.
Thanks for this! |
Just update to edition 2018 before edition 2021 coming.