From 585c7d43f923da4c35cdf6bd711e8fed28e09d03 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 4 Aug 2018 23:02:57 -0700 Subject: [PATCH] Add a feature to build a vendored OpenSSL This will be enabled through rust-lang/rust to ensure that for dist builds we can build a Cargo with a vendored OpenSSL --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index db75cebdd8b..0e24808ee9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ toml = "0.4.2" url = "1.1" clap = "2.31.2" unicode-width = "0.1.5" +openssl = { version = '0.10.11', optional = true } # A noop dependency that changes in the Rust repository, it's a bit of a hack. # See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust` @@ -95,3 +96,6 @@ bufstream = "0.1" name = "cargo" test = false doc = false + +[features] +vendored-openssl = ['openssl/vendored']