File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ license = "MIT"
2323repository = " https://github.com/malept/crypto-hash"
2424[dependencies .hex ]
2525version = " 0.3"
26- [target ."cfg(not(any(target_os = \"windows\", target_os = \"macos\")))" .dependencies .openssl ]
26+ [target ."cfg(not(any(target_os = \"windows\", all( target_os = \"macos\", not(feature = \"macos_before_10_7\")) )))" .dependencies .openssl ]
2727version = " 0.10"
28- [target ."cfg(target_os = \"macos\")" .dependencies .commoncrypto ]
28+ [target ."cfg(all( target_os = \"macos\", not(feature = \"macos_before_10_7\")) )" .dependencies .commoncrypto ]
2929version = " 0.2"
3030[target ."cfg(target_os = \"windows\")" .dependencies .winapi ]
3131version = " 0.3"
Original file line number Diff line number Diff line change 4343
4444#![ warn( missing_docs) ]
4545
46- #[ cfg( target_os = "macos" ) ]
46+ #[ cfg( all ( target_os = "macos" , not ( feature = "macos_before_10_7" ) ) ) ]
4747extern crate commoncrypto;
4848extern crate hex;
4949#[ cfg( not( any( target_os = "macos" , target_os = "windows" ) ) ) ]
@@ -53,13 +53,13 @@ extern crate winapi;
5353
5454use std:: io:: Write ;
5555
56- #[ cfg( target_os = "macos" ) ]
56+ #[ cfg( all ( target_os = "macos" , not ( feature = "macos_before_10_7" ) ) ) ]
5757#[ path = "imp/commoncrypto.rs" ]
5858mod imp;
5959#[ cfg( target_os = "windows" ) ]
6060#[ path = "imp/cryptoapi.rs" ]
6161mod imp;
62- #[ cfg( not( any( target_os = "macos" , target_os = "windows" ) ) ) ]
62+ #[ cfg( not( any( all ( target_os = "macos" , not ( feature = "macos_before_10_7" ) ) , target_os = "windows" ) ) ) ]
6363#[ path = "imp/openssl.rs" ]
6464mod imp;
6565
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ fn main() {
132132
133133 if windows {
134134 features. push_str ( "#define GIT_WINHTTP 1\n " ) ;
135+ #[ cfg( not( feature = "macos_before_10_7" ) ) ]
135136 } else if target. contains ( "apple" ) {
136137 features. push_str ( "#define GIT_SECURE_TRANSPORT 1\n " ) ;
137138 } else {
You can’t perform that action at this time.
0 commit comments