Skip to content

Commit f10ada2

Browse files
committed
feat(cli/rustup-mode): support more books in rustup doc
1 parent 01f5145 commit f10ada2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/cli/rustup_mode.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1443,9 +1443,14 @@ docs_data![
14431443
(alloc, "The Rust core allocation and collections library", "alloc/index.html"),
14441444
(book, "The Rust Programming Language book", "book/index.html"),
14451445
(cargo, "The Cargo Book", "cargo/index.html"),
1446+
(clippy, "The Clippy Documentation", "clippy/index.html"),
14461447
(core, "The Rust Core Library", "core/index.html"),
14471448
(edition_guide, "The Rust Edition Guide", "edition-guide/index.html"),
14481449
(embedded_book, "The Embedded Rust Book", "embedded-book/index.html"),
1450+
1451+
#[arg(long = "error_codes")]
1452+
(error_codes, "The Rust Error Codes Index", "error_codes/index.html"),
1453+
14491454
(nomicon, "The Dark Arts of Advanced and Unsafe Rust Programming", "nomicon/index.html"),
14501455

14511456
#[arg(long = "proc_macro")]
@@ -1456,6 +1461,7 @@ docs_data![
14561461
(rustc, "The compiler for the Rust programming language", "rustc/index.html"),
14571462
(rustdoc, "Documentation generator for Rust projects", "rustdoc/index.html"),
14581463
(std, "Standard library API documentation", "std/index.html"),
1464+
(style_guide, "The Rust Style Guide", "style-guide/index.html"),
14591465
(test, "Support code for rustc's built in unit-test and micro-benchmarking framework", "test/index.html"),
14601466
(unstable_book, "The Unstable Book", "unstable-book/index.html"),
14611467
];

tests/suite/cli-ui/rustup/rustup_doc_cmd_help_flag_stdout.toml

+3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ Options:
1818
--alloc The Rust core allocation and collections library
1919
--book The Rust Programming Language book
2020
--cargo The Cargo Book
21+
--clippy The Clippy Documentation
2122
--core The Rust Core Library
2223
--edition-guide The Rust Edition Guide
2324
--embedded-book The Embedded Rust Book
25+
--error_codes The Rust Error Codes Index
2426
--nomicon The Dark Arts of Advanced and Unsafe Rust Programming
2527
--proc_macro A support library for macro authors when defining new macros
2628
--reference The Rust Reference
@@ -29,6 +31,7 @@ Options:
2931
--rustc The compiler for the Rust programming language
3032
--rustdoc Documentation generator for Rust projects
3133
--std Standard library API documentation
34+
--style-guide The Rust Style Guide
3235
--test Support code for rustc's built in unit-test and micro-benchmarking
3336
framework
3437
--unstable-book The Unstable Book

0 commit comments

Comments
 (0)