Closed
Description
I tried using hyper 0.9.6 with security-framework enabled on OS X, my Cargo.toml snippet looks like:
[dependencies.hyper]
version = "0.9.6"
default-features = false
features = ["security-framework"]
I get this build error:
Compiling hyper v0.9.6
/Users/luser/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/hyper-0.9.6/src/client/proxy.rs:19:72: 19:86 error: type name `net::Openssl` is undefined or not in scope [E0412]
/Users/luser/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/hyper-0.9.6/src/client/proxy.rs:19 pub fn tunnel(proxy: (Cow<'static, str>, u16)) -> Proxy<HttpConnector, ::net::Openssl> {
^~~~~~~~~~~~~~
/Users/luser/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/hyper-0.9.6/src/client/proxy.rs:19:72: 19:86 help: run `rustc --explain E0412` to see a detailed explanation
/Users/luser/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/hyper-0.9.6/src/client/proxy.rs:19:72: 19:86 help: no candidates by the name of `Openssl` found in your project; maybe you misspelled the name or forgot to import an external crate?
error: aborting due to previous error
Could not compile `hyper`.
To learn more, run the command again with --verbose.
If I leave out the features = ["security-framework"]
it builds fine. I don't have homebrew OpenSSL installed, so if I leave out the default-features = false
it fails trying to build openssl.