我有一个使用 Solicit 示例通过 HTTPS 发出请求的简单项目。我的 Cargo.toml 有:
[package]
name = "test"
version = "0.1.0"
authors = ["einchear"]
[dependencies.openssl]
version = "0.7.14"
features = ["tlsv1_2", "npn"]
[dependencies.solicit]
version = "0.4.4"
features = ["tls"]
当我尝试运行cargo build
时,错误是:
error: Package `openssl v0.9.12` does not have these features: `npn, tlsv1_2`
为什么是 0.9.12 而不是 0.7.14?