Mac OS X uses security_framework as backend in native_tls, so there is no openssl in backend:
Compiling swagger v1.0.1 (file:///Users/plhk/Documents/src/swagger-rs)
error[E0433]: failed to resolve. Could not find `openssl` in `backend`
--> src/connector.rs:39:34
|
39 | native_tls::backend::openssl::TlsConnectorBuilderExt::from_openssl(ssl);
| ^^^^^^^ Could not find `openssl` in `backend`
error[E0433]: failed to resolve. Could not find `openssl` in `backend`
--> src/connector.rs:83:34
|
83 | native_tls::backend::openssl::TlsConnectorBuilderExt::from_openssl(ssl);
| ^^^^^^^ Could not find `openssl` in `backend`
I guess the same error would happen on Windows.
Mac OS X uses
security_frameworkas backend innative_tls, so there is noopensslin backend:I guess the same error would happen on Windows.