Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Support Rust #422

Open
peterschussheim opened this issue Jul 1, 2017 · 14 comments
Open

Support Rust #422

peterschussheim opened this issue Jul 1, 2017 · 14 comments

Comments

@peterschussheim
Copy link

Hi,

So far I am loving Sourcetrail and would like to see Rust support added. Thank you.

@egraether
Copy link
Contributor

+1 by mail

1 similar comment
@egraether
Copy link
Contributor

+1 by mail

@adrianperreault
Copy link

+1

2 similar comments
@sudeep9
Copy link

sudeep9 commented Nov 20, 2017

+1

@svraghavan
Copy link

+1

@egraether
Copy link
Contributor

Since we cannot keep up with language requests, we created the SourcetrailDB library to allow anyone to write custom indexers and extend language support for Sourcetrail.

If you are interested in writing an indexer for Rust, please let us know!

@jdm
Copy link

jdm commented Nov 19, 2019

Building an indexer on top of Mozilla's searchfox Rust indexer, or rls_analysis (which searchfox depends upon) is probably the quickest path forward.

@mlangkabel
Copy link
Contributor

Thanks for the pointers! Do you know if we can get calls, uses, etc. data from that? And also the source locations there those calls and uses happen?

@jdm
Copy link

jdm commented Nov 19, 2019

It looks like rls_analysis provides information that can be turned into that data: https://docs.rs/rls-data/0.19.0/rls_data/struct.Analysis.html

@XVilka
Copy link

XVilka commented Nov 20, 2019

#750 might be the way to go too.

@Champii
Copy link

Champii commented Nov 20, 2019

I've started (early and not yet working) Rust support development on SourcetrailDB CoatiSoftware/SourcetrailDB#16.
While other approach may prove to be valid, this could be one way to reach full Rust support inside Sourcetrail.

Feel free to contribute or criticise (constructively) on the matter :)

@astrolemonade
Copy link

"See also cargo-src, which uses the metadata produced by the compiler (i.e. cargo check).
The approach I suggest is to run cargo check, then convert the analysis results into the Sourcetrail format, it should work."
Credit: WellMakeItSomehow Reddit

@jdm
Copy link

jdm commented Nov 20, 2019

rls_analysis uses the same compiler output already.

@kajogo777
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests