We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a09b66e commit e7f5a41Copy full SHA for e7f5a41
Cargo.toml
@@ -83,3 +83,7 @@ required-features = ["static-curl", "ssl"]
83
name = "multi-dl"
84
path = "examples/multi-dl.rs"
85
required-features = ["ssl"]
86
+
87
+[lints.rust.unexpected_cfgs]
88
+level = "warn"
89
+check-cfg = ["cfg(need_openssl_init, need_openssl_probe)"]
build.rs
@@ -1,12 +1,6 @@
1
use std::env;
2
3
fn main() {
4
- println!(
5
- "cargo::rustc-check-cfg=cfg(\
6
- need_openssl_init,\
7
- need_openssl_probe,\
8
- )"
9
- );
10
// OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl.
11
// <= 1.0.2 need locking callbacks, which are provided by openssl_sys::init().
12
let use_openssl = match env::var("DEP_OPENSSL_VERSION_NUMBER") {
0 commit comments