#language-server #language #lsif #server

yanked lsif-rust

Language Server Index Format (LSIF) indexer for Rust

0.0.1 Feb 15, 2021

#222 in #language-server

MIT license

28KB
722 lines

lsif-rust

Language Server Index Format (LSIF) is a standard format for language servers or other programming tools to dump their knowledge about a code workspace (article). lsif-rust is an attempt to implement such a tool for Rust since none exists for the language as listed on lsif.dev.

Installation

cargo install lsif-rust

Usage

Run the command in the same directory as Cargo.toml. Requires nightly Rust (for -Z save-analysis).

lsif-rust 0.0.1
LSIF Indexer for Rust

USAGE:
    lsif-rust [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -o, --output <FILE>             The output file. Outputs to stdout if unspecified.
        --output-format <FORMAT>    Specifies the output format. [default: line]  [possible values: line, json]

Progress

lsif-rust is under heavy development and very much still a WIP.

Checklisted below are the features that have been implemented:

Other features (non-exhaustive):

  • Supports Cargo workspaces

Dependencies

~53MB
~1M SLoC