pub fn build(
    toolchain: impl AsRef<OsStr>,
    manifest_path: impl AsRef<Path>
) -> Result<PathBuf, BuildError>
Expand description

Generate rustdoc JSON for a library crate. Returns the path to the freshly built rustdoc JSON file. toolchain is the toolchain, e.g. "+nightly". manifest_path is the relative or absolute path to Cargo.toml.

Errors

E.g. if building the JSON fails or of the manifest path does not exist or is invalid.