CARGO-DOC(1) General Commands Manual CARGO-DOC(1) (NAME) cargo-doc - (SYNOPSIS) cargo doc [] (DESCRIPTION) . target/doc rustdoc . : : cargo doc . --doc cargo-clean(1) . (OPTIONS) (Documentation Options) --open . BROWSER doc.browser . --no-deps . --document-private-items . (binary target) . (Package Selection) ( --manifest-path ). (workspace) . workspace.default-members . ( --workspace) (crate) . -p spec, --package spec . SPEC cargo-pkgid(1) . glob * ? [] . glob Cargo . --workspace . --all --workspace. --exclude SPEC . --workspace . glob * ? [] . glob Cargo . (Target Selection) cargo doc . (lib) . (required-features) . doc = false . doc . --lib . --bin name . glob . --bins . --example name (example) . glob . --examples (examples). . default . . -F features, --features features . package-name/feature-name . . --all-features . --no-default-features default . (Compilation Options) --target triple . . . (triple) --- . : o rustc --print target-list. o "host-tuple" . (cross-compilation) ( xtask ). o . Custom Target Lookup Path . build.target . Cargo . (build cache) . -r, --release release. --profile . --profile name . . --timings . cargo-timing.html target/cargo-timings . . . (Output Options) --target-dir directory . CARGO_TARGET_DIR build.target-dir . target . -v, --verbose . " " . term.verbose . -q, --quiet Cargo . term.quiet . --color when . : o auto (): . o always: . o never: . term.color . --message-format fmt (diagnostic). . : o human (): . short json . o short: . human json . o json: JSON stdout. . human short . o json-diagnostic-short: rendered JSON "" (short) rustc . human short . o json-diagnostic-rendered-ansi: rendered JSON ANSI rustc . human short . o json-render-diagnostics: Cargo rustc JSON Cargo JSON rustc . JSON Cargo rustc . human short . (Manifest Options) --manifest-path path Cargo.toml. Cargo Cargo.toml . --ignore-rust-version rust-version . --locked Cargo.lock . Cargo : o lock . o lock . CI . --offline Cargo . Cargo . Cargo . . Cargo crate index . cargo-fetch(1) . net.offline . --frozen --locked --offline. +toolchain Cargo rustup cargo + (toolchain) rustup ( +stable +nightly). rustup . --config KEY=VALUE PATH Cargo . TOML KEY=VALUE . . . -C PATH . cargo (Cargo.toml) .cargo/config.toml . : cargo -C path/to/my-project build. nightly -Z unstable-options ( #10098 ). -h, --help . -Z flag ( nightly) Cargo. cargo -Z help . (Miscellaneous Options) -j N, --jobs N . build.jobs . . . default . 0 . --keep-going (crates) . fails works cargo doc -j1 ( Cargo ) cargo doc -j1 --keep-going . (ENVIRONMENT) Cargo . (EXIT STATUS) o 0: Cargo . o 101: Cargo . (EXAMPLES) 1. target/doc : cargo doc cargo(1), cargo-rustdoc(1), rustdoc(1) CARGO-DOC(1)