summary refs log tree commit diff
path: root/src/tools/rustdoc
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-22 20:01:58 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2017-07-27 05:51:22 -0600
commite2e9b40e9aff842928c65606e47d9203a848a4e9 (patch)
treee66fc893468c1041a1abfb8ee00021f995d70379 /src/tools/rustdoc
parentfe0eca0d3f028affeccbc4c422d54c80b5837157 (diff)
downloadrust-e2e9b40e9aff842928c65606e47d9203a848a4e9.tar.gz
rust-e2e9b40e9aff842928c65606e47d9203a848a4e9.zip
Build rustdoc on-demand.
Rustdoc is no longer compiled in every stage, alongside rustc, instead
it is only compiled when requested, and generally only for the last
stage.
Diffstat (limited to 'src/tools/rustdoc')
-rw-r--r--src/tools/rustdoc/Cargo.toml11
-rw-r--r--src/tools/rustdoc/main.rs13
2 files changed, 24 insertions, 0 deletions
diff --git a/src/tools/rustdoc/Cargo.toml b/src/tools/rustdoc/Cargo.toml
new file mode 100644
index 00000000000..b6edb76d7f9
--- /dev/null
+++ b/src/tools/rustdoc/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "rustdoc-tool"
+version = "0.0.0"
+authors = ["The Rust Project Developers"]
+
+[[bin]]
+name = "rustdoc"
+path = "main.rs"
+
+[dependencies]
+rustdoc = { path = "../../librustdoc" }
diff --git a/src/tools/rustdoc/main.rs b/src/tools/rustdoc/main.rs
new file mode 100644
index 00000000000..9c37e249ba8
--- /dev/null
+++ b/src/tools/rustdoc/main.rs
@@ -0,0 +1,13 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+extern crate rustdoc;
+
+fn main() { rustdoc::main() }