Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish docs for the proc_macro crate #39986

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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