Skip to main content

Rust

To index Rust we use rust-analyzer in SCIP mode.

Prerequisites​

You will need:

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

  • DB is the directory where you want to store your Glean DBs
  • DIR is the root directory containing the Rust project
  • NAME/INSTANCE is 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