# Function cargo::core::compiler::prepare_rustdoc

source ·

    fn prepare_rustdoc(
        build_runner: &BuildRunner<'_, '_>,
        unit: &Unit
    ) -> CargoResult<ProcessBuilder>

Expand description

Prepares flags and environments we can compute for a `rustdoc` invocation before the job queue starts compiling any unit.

This builds a static view of the invocation. Flags depending on the completion of other units will be added later in runtime, such as flags from build scripts.