File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " mbedtls-sys-auto"
3
- version = " 2.25.1 "
3
+ version = " 2.25.2 "
4
4
authors = [
" Jethro Beekman <[email protected] >" ]
5
5
build = " build/build.rs"
6
6
license = " Apache-2.0/GPL-2.0+"
@@ -55,8 +55,9 @@ padlock = []
55
55
legacy_protocols = []
56
56
mpi_force_c_code = []
57
57
trusted_cert_callback = []
58
- # deprecated features, these don't do anything anymore , can be removed on major version bump
58
+ # deprecated, needed for backcompat , can be removed on major version bump
59
59
custom_threading = [" threading" ]
60
- pthread = [" threading" ]
61
60
custom_time = [" time" ]
62
61
custom_gmtime_r = [" time" ]
62
+ # deprecated features, these don't do anything anymore, can be removed on major version bump
63
+ pthread = [" threading" ]
Original file line number Diff line number Diff line change @@ -28,13 +28,17 @@ impl Features {
28
28
}
29
29
self . automatic_features . insert ( "c_compiler" ) ;
30
30
31
+ // deprecated, needed for backcompat
32
+ let have_custom_threading = self . have_feature ( "custom_threading" ) ;
33
+ let have_custom_gmtime_r = self . have_feature ( "custom_gmtime_r" ) ;
34
+
31
35
if !self . have_feature ( "std" ) ||
32
36
env_have_target_cfg ( "env" , "sgx" ) ||
33
37
env_have_target_cfg ( "os" , "none" ) {
34
38
self . with_feature ( "c_compiler" ) . unwrap ( ) . insert ( "freestanding" ) ;
35
39
}
36
40
if let Some ( components) = self . with_feature ( "threading" ) {
37
- if env_have_target_cfg ( "family" , "unix" ) {
41
+ if !have_custom_threading && env_have_target_cfg ( "family" , "unix" ) {
38
42
components. insert ( "pthread" ) ;
39
43
} else {
40
44
components. insert ( "custom" ) ;
@@ -48,7 +52,7 @@ impl Features {
48
52
}
49
53
}
50
54
if let Some ( components) = self . with_feature ( "time" ) {
51
- if env_have_target_cfg ( "family" , "unix" ) {
55
+ if !have_custom_gmtime_r && env_have_target_cfg ( "family" , "unix" ) {
52
56
components. insert ( "libc" ) ;
53
57
} else {
54
58
components. insert ( "custom" ) ;
You can’t perform that action at this time.
0 commit comments