Skip to content

Commit

Permalink
feat(cli/rustup-mode): support more books in rustup doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Nov 10, 2024
1 parent 01f5145 commit f10ada2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,9 +1443,14 @@ docs_data![
(alloc, "The Rust core allocation and collections library", "alloc/index.html"),
(book, "The Rust Programming Language book", "book/index.html"),
(cargo, "The Cargo Book", "cargo/index.html"),
(clippy, "The Clippy Documentation", "clippy/index.html"),
(core, "The Rust Core Library", "core/index.html"),
(edition_guide, "The Rust Edition Guide", "edition-guide/index.html"),
(embedded_book, "The Embedded Rust Book", "embedded-book/index.html"),

#[arg(long = "error_codes")]
(error_codes, "The Rust Error Codes Index", "error_codes/index.html"),

(nomicon, "The Dark Arts of Advanced and Unsafe Rust Programming", "nomicon/index.html"),

#[arg(long = "proc_macro")]
Expand All @@ -1456,6 +1461,7 @@ docs_data![
(rustc, "The compiler for the Rust programming language", "rustc/index.html"),
(rustdoc, "Documentation generator for Rust projects", "rustdoc/index.html"),
(std, "Standard library API documentation", "std/index.html"),
(style_guide, "The Rust Style Guide", "style-guide/index.html"),
(test, "Support code for rustc's built in unit-test and micro-benchmarking framework", "test/index.html"),
(unstable_book, "The Unstable Book", "unstable-book/index.html"),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ Options:
--alloc The Rust core allocation and collections library
--book The Rust Programming Language book
--cargo The Cargo Book
--clippy The Clippy Documentation
--core The Rust Core Library
--edition-guide The Rust Edition Guide
--embedded-book The Embedded Rust Book
--error_codes The Rust Error Codes Index
--nomicon The Dark Arts of Advanced and Unsafe Rust Programming
--proc_macro A support library for macro authors when defining new macros
--reference The Rust Reference
Expand All @@ -29,6 +31,7 @@ Options:
--rustc The compiler for the Rust programming language
--rustdoc Documentation generator for Rust projects
--std Standard library API documentation
--style-guide The Rust Style Guide
--test Support code for rustc's built in unit-test and micro-benchmarking
framework
--unstable-book The Unstable Book
Expand Down

0 comments on commit f10ada2

Please sign in to comment.