File: disable-vendor.patch

package info (click to toggle)
rust-openssl-sys 0.9.109-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 117; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,1 +40,0 @@
-vendored = ["openssl-src"]
@@ -50,5 +50,0 @@
-[build-dependencies.openssl-src]
-version = "300.2.0"
-features = ["legacy"]
-optional = true
-
--- a/build/main.rs
+++ b/build/main.rs
@@ -20,2 +20,0 @@
-#[cfg(feature = "vendored")]
-mod find_vendored;
@@ -49,14 +47,6 @@
 }
 
 fn find_openssl(target: &str) -> (Vec<PathBuf>, PathBuf) {
-    #[cfg(feature = "vendored")]
-    {
-        // vendor if the feature is present, unless
-        // OPENSSL_NO_VENDOR exists and isn't `0`
-        if env("OPENSSL_NO_VENDOR").map_or(true, |s| s == "0") {
-            return find_vendored::get_openssl(target);
-        }
-    }
     find_normal::get_openssl(target)
 }