about summary refs log tree commit diff
path: root/src/tools/rustbook
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-10-06 17:30:11 -0500
committerSamuel Holland <samuel@sholland.org>2019-10-28 22:34:43 -0500
commitc648ad587c7b133b2e95cc370b8b5e813c352fb1 (patch)
treeb3eef5620d2379ffe9295c4a6d34b9aeecf6f678 /src/tools/rustbook
parentcac68218105f1ba8b6a2a0b21b791951ff02f75d (diff)
Use rustc-workspace-hack for rustbook
As rustbook now depends transitively on openssl, it needs access to the
rustc-workspace-hack/all-static feature to pick up openssl-sys/vendored.
This fixes the rust build with `all-static = true` on systems where
openssl is not installed (e.g. when cross-compiling).
Diffstat (limited to 'src/tools/rustbook')
-rw-r--r--src/tools/rustbook/Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustbook/Cargo.toml b/src/tools/rustbook/Cargo.toml
index a7188f0d11e..89bbde4d5a9 100644
--- a/src/tools/rustbook/Cargo.toml
+++ b/src/tools/rustbook/Cargo.toml
@@ -13,6 +13,11 @@ clap = "2.25.0"
 failure = "0.1"
 mdbook-linkcheck = { version = "0.3.0", 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`
+# for more information.
+rustc-workspace-hack = "1.0.0"
+
 [dependencies.mdbook]
 version = "0.3.0"
 default-features = false