Rust
To index Rust we use rust-analyzer in SCIP mode.
Prerequisites
You will need:
- rust-analyzer, available via
rustup component add rust-analyzer - scip-to-glean, the SCIP-to-Glean converter
Run the indexer
Ensure that you have built and installed Glean and
the glean executable is on your PATH.
Index your Rust repository with:
glean index rust-scip DIR --db-root DB --db NAME/INSTANCE
where
DBis the directory where you want to store your Glean DBsDIRis the root directory containing the Rust projectNAME/INSTANCEis the name of the repository to create
In the shell
Rust source can also be indexed directly from the Glean shell:
:index rust-scip DIR
The shell will pick a DB name and hash for you based on DIR.
Schema
The schema is in glean/schema/source/scip.angle