tree: 19b7da191d3e433fc241527159ddc4bb5f788d7a [path history] [tgz]
  1. src/
  2. testdata/
  3. .gitignore
  4. BUILD
  5. Cargo.toml
  6. README.md
kythe/rust/indexer/README.md

kythe-indexer

kythe-indexer is an EXPERIMENTAL plugin for rustc that utilizes Google's Kythe pipeline for working with source code.

kythe-indexer currently supports:

  • cross-references
  • call graphs

NOTE: AS A PLUGIN kythe-indexer REQUIRES NIGHTLY RUST

Usage

There are many ways to load the kythe-indexer plugin, but the least obtrusive is as a command line flag like so:

$ rustc -Zextra-plugins=kythe_indexer

If you are using a build tool rather than the rustc command directly:

$ RUST_FLAGS="-Zextra-plugins=kythe_indexer" {my_build_cmd}

The plugin will output kythe entries in JSON form to stdout.