Skip to content

Commit 4359666

Browse files
authored
Rollup merge of rust-lang#65920 - smaeul:patch/workspace-hack, r=alexcrichton
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).
2 parents 67558a8 + c648ad5 commit 4359666

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -3103,6 +3103,7 @@ dependencies = [
31033103
"failure",
31043104
"mdbook",
31053105
"mdbook-linkcheck",
3106+
"rustc-workspace-hack",
31063107
]
31073108

31083109
[[package]]

src/bootstrap/tool.rs

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ pub fn prepare_tool_cargo(
244244
path.ends_with("rls") ||
245245
path.ends_with("clippy") ||
246246
path.ends_with("miri") ||
247+
path.ends_with("rustbook") ||
247248
path.ends_with("rustfmt")
248249
{
249250
cargo.env("LIBZ_SYS_STATIC", "1");

src/tools/rustbook/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ clap = "2.25.0"
1313
failure = "0.1"
1414
mdbook-linkcheck = { version = "0.3.0", optional = true }
1515

16+
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
17+
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
18+
# for more information.
19+
rustc-workspace-hack = "1.0.0"
20+
1621
[dependencies.mdbook]
1722
version = "0.3.0"
1823
default-features = false

0 commit comments

Comments
 (0)