Skip to content

Consider uploading RA LSIF data to sourcegraph, from bors builds. #101446

@eddyb

Description

@eddyb

Sourcegraph supports what they call "Precise code navigation" using data from tools such as rust-analyzer, and there's even convenience tools like https://github.com/sourcegraph/lsif-rust-action for uploading such data from CI.

I don't personally use sourcegraph yet, and have been relying a lot on the GitHub CodeSearch (still in private beta, I believe), but having a publicly available service with better source code understanding seems really good and I'll try to remember it for the future.

I was looking around and found that at least one of the rust-lang repos happens to have it:
https://sourcegraph.com/github.com/rust-lang/rustc-demangle@2811a1ad6f7c8bead2ef3671e4fdc10de1553e96/-/blob/src/v0.rs?L65

You can see how well hovering and clicking around works, it's a lot of fun frankly.


For rust-lang/rust it would likely be harder than that sourcegraph/lsif-rust-action helper (at the very least custom rust-analyzer configuration might be needed), but it might still be doable enough that we could maybe try it and see what happens (as long as no "paid plan" is required, I don't know the full details on the sourcegraph side).

cc @bjorn3 (who mentioned the LSIF support, which got me looking at sourcegraph)
cc @rust-lang/infra

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions