Skip to main content

generate_docs

Function generate_docs 

Source
pub fn generate_docs(
    crate_path: impl AsRef<Path>,
    cratesio_index: Option<&str>,
) -> Result<(), DocsError>
Expand description

Document the crate at crate_path with cargo in the current process.

This runs the crate’s build scripts and proc macros. It is only called by the hidden doc-build subcommand, which DocBuilder runs as a separate process with a cleared environment.