Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,13 @@ If you use Nix, run it straight from the flake:
nix run github:sourcegraph/scip-rust
```

## Limitations

`scip-rust` expects one Cargo project per run. If your repo has several
independent crates or workspaces (or no `Cargo.toml` at the path you pass), the
run fails. Index each project on its own and upload the results separately.
Details in [issue #5].

[`rust-analyzer`]: https://rust-analyzer.github.io/book/installation.html
[`scip-rust`]: ./scip-rust
[issue #5]: https://github.com/sourcegraph/scip-rust/issues/5
8 changes: 0 additions & 8 deletions scip-rust
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ for tool in cargo rust-analyzer rustc; do
fi
done

# rust-analyzer's path lookup looks in subdirectories by default. For example,
# in the general case, if you have multiple parallel workspaces, under say
# - A/B/C with crates X1, X2
# - A/B/D with crates Y1, Y2
# and you run rust-analyzer with A/ as the project path, it will pick up all
# crates (X1, X2, Y1 and Y2). So it is enough to run rust-analyzer once,
# instead of once per workspace, or once per crate.
#
# Forward any extra args (e.g. `--output PATH`) to rust-analyzer; default
# to indexing the current directory if no path is given.
if [ $# -eq 0 ]; then
Expand Down
Loading