Skip to content

Commit

Permalink
Publish docs for the proc_macro crate.
Browse files Browse the repository at this point in the history
Fix #38749
  • Loading branch information
SimonSapin committed Feb 21, 2017
1 parent 5b7c556 commit 2a98fc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ use {Build, Compiler, Mode};
use util::cp_r;
use build_helper::up_to_date;

/// Only these crates should have their rustdoc documentation built by default.
const PUBLIC_CRATES: &'static [&'static str] = &[
"alloc", "collections", "core", "std", "std_unicode", "proc_macro"
];

/// Invoke `rustbook` as compiled in `stage` for `target` for the doc book
/// `name` into the `out` path.
///
Expand Down Expand Up @@ -162,7 +167,7 @@ pub fn std(build: &Build, stage: u32, target: &str) {
cargo.arg("-p").arg("std");
} else {
cargo.arg("--no-deps");
for krate in &["alloc", "collections", "core", "std", "std_unicode"] {
for krate in PUBLIC_CRATES {
cargo.arg("-p").arg(krate);
// Create all crate output directories first to make sure rustdoc uses
// relative links.
Expand Down

0 comments on commit 2a98fc6

Please sign in to comment.