diff --git a/Cargo.toml b/Cargo.toml index ed871cfdd..54eb015b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,3 +83,7 @@ required-features = ["static-curl", "ssl"] name = "multi-dl" path = "examples/multi-dl.rs" required-features = ["ssl"] + +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = ["cfg(need_openssl_init, need_openssl_probe)"] diff --git a/build.rs b/build.rs index d6b0797a6..11539d433 100644 --- a/build.rs +++ b/build.rs @@ -1,12 +1,6 @@ use std::env; fn main() { - println!( - "cargo::rustc-check-cfg=cfg(\ - need_openssl_init,\ - need_openssl_probe,\ - )" - ); // OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl. // <= 1.0.2 need locking callbacks, which are provided by openssl_sys::init(). let use_openssl = match env::var("DEP_OPENSSL_VERSION_NUMBER") {