Skip to content

Document possibility of indexing user provided crates #10

@philippeitis

Description

@philippeitis

It is possible to index user provided crates like so:

export RUSTDOCFLAGS="-Zunstable-options --output-format=json"
cargo +nightly doc

Alternatively, in Rust:

std::process::Command::new("cargo")
    .arg("+nightly")
    .arg("doc")
    .env("RUSTDOCFLAGS", "-Zunstable-options --output-format=json")
    .env("CARGO_TARGET_DIR", &index_dir)
    .current_dir(crate_path)
    .output();

I think it would be useful to document this as an option somewhere in the roogle-engine documentation or README.md, or both. However, it does run into internal compiler errors, so it will not currently work for all projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions