Skip to content
Browse files

Install `rust-docs` rustup component in `./mach doc`

  • Loading branch information
SimonSapin committed Jan 2, 2020
1 parent 1110cac commit f93c03cda345fb746ff3bb5b92b86536a0ee9236
Showing with 7 additions and 6 deletions.
  1. +0 −1 etc/taskcluster/
  2. +6 −4 python/servo/
  3. +1 −1 python/servo/
@@ -226,7 +226,6 @@ def linux_docs_check():
linux_build_task("Docs + check")
.with_treeherder("Linux x64", "Doc+Check")
rustup component add rust-docs
RUSTDOCFLAGS="--disable-minification" ./mach doc
cd target/doc
@@ -994,7 +994,7 @@ def handle_android_target(self, target):
return True
return False

def ensure_bootstrapped(self, target=None):
def ensure_bootstrapped(self, target=None, rustup_components=None):
if self.context.bootstrapped:

@@ -1011,10 +1011,12 @@ def ensure_bootstrapped(self, target=None):
if toolchain not in check_output(["rustup", "toolchain", "list"]):
check_call(["rustup", "toolchain", "install", "--profile", "minimal", toolchain])

if "rustc-dev" not in check_output(
installed = check_output(
["rustup", "component", "list", "--installed", "--toolchain", toolchain]
check_call(["rustup", "component", "add", "--toolchain", toolchain, "rustc-dev"])
for component in set(rustup_components or []) | {"rustc-dev"}:
if component not in installed:
check_call(["rustup", "component", "add", "--toolchain", toolchain, component])

if target and "uwp" not in target and target not in check_output(
["rustup", "target", "list", "--installed", "--toolchain", toolchain]
@@ -241,7 +241,7 @@ def rr_replay(self):
def doc(self, params, features, target=None, android=False, magicleap=False,
media_stack=None, **kwargs):
rustc_path = check_output(
["rustup" + BIN_SUFFIX, "which", "--toolchain", self.rust_toolchain(), "rustc"])
assert path.basename(path.dirname(rustc_path)) == "bin"

0 comments on commit f93c03c

Please sign in to comment.
You can’t perform that action at this time.