File tree Expand file tree Collapse file tree 3 files changed +8
-23
lines changed Expand file tree Collapse file tree 3 files changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,15 @@ repository = "https://github.com/blas-lapack-rs/openblas-src"
11
11
readme = " ../README.md"
12
12
exclude = [" test_build/" ]
13
13
14
- [features ]
15
- default = [" tls" ]
16
-
17
- tls = [" ureq/tls" , " ureq/gzip" ]
18
- native-certs = [
19
- " native-tls" ,
20
- " ureq/native-certs" ,
21
- " ureq/native-tls" ,
22
- " ureq/gzip" ,
23
- ]
24
-
25
14
[dependencies ]
26
15
anyhow = " 1.0.68"
27
16
flate2 = " 1.0.25"
28
17
tar = " 0.4.38"
29
18
thiserror = " 1.0.22"
30
- ureq = { version = " 2.5.0" , default-features = false }
31
- native-tls = { version = " 0.2.11" , optional = true }
19
+ ureq = { version = " 2.5.0" , default-features = false , features = [
20
+ " native-certs" ,
21
+ " native-tls" ,
22
+ " gzip" ,
23
+ ] }
24
+ native-tls = { version = " 0.2.11" }
32
25
walkdir = " 2.3.1"
Original file line number Diff line number Diff line change @@ -25,16 +25,10 @@ pub fn download(out_dir: &Path) -> Result<PathBuf> {
25
25
Ok ( dest)
26
26
}
27
27
28
- #[ cfg( feature = "native-tls" ) ]
29
28
fn get_agent ( ) -> ureq:: Agent {
30
29
ureq:: AgentBuilder :: new ( )
31
30
. tls_connector ( std:: sync:: Arc :: new (
32
31
native_tls:: TlsConnector :: new ( ) . expect ( "failed to create TLS connector" ) ,
33
32
) )
34
33
. build ( )
35
34
}
36
-
37
- #[ cfg( not( feature = "native-tls" ) ) ]
38
- fn get_agent ( ) -> ureq:: Agent {
39
- ureq:: agent ( )
40
- }
Original file line number Diff line number Diff line change @@ -24,22 +24,20 @@ build = "build.rs"
24
24
links = " openblas"
25
25
26
26
[features ]
27
- default = [" cblas" , " lapacke" , " tls " ]
27
+ default = [" cblas" , " lapacke" ]
28
28
29
29
cache = []
30
30
cblas = []
31
31
lapacke = []
32
32
static = []
33
33
system = []
34
- tls = [" openblas-build/tls" ]
35
- native-certs = [" openblas-build/native-certs" ]
36
34
37
35
[dev-dependencies ]
38
36
libc = " 0.2"
39
37
40
38
[build-dependencies ]
41
39
dirs = " 3.0.1"
42
- openblas-build = { version = " 0.10.7" , path = " ../openblas-build" , default-features = false }
40
+ openblas-build = { version = " 0.10.7" , path = " ../openblas-build" }
43
41
44
42
[target .'cfg(target_os="windows")' .build-dependencies ]
45
43
vcpkg = " 0.2"
You can’t perform that action at this time.
0 commit comments