- Notifications
You must be signed in to change notification settings - Fork1.7k
-
Hi all, I was reading your docs about how you managed to create thesupport for Ruby where you explain that you used the output from
So, is it possible to usetree-sitter's rust parser to build the database? If so, how could I parse the |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 5 replies
-
Greetings, thanks for getting in touch with this question! Having said that, the TRAP format as well as a number of other aspects of implementing your own extractor aren't particularly well documented, so it would really be quite a challenge to add a new language to CodeQL yourself. Additionally, even once an extractor is working there's still quite a lot of work that needs to be done before the database can be used to produce useful results. For reference, even though Additionally, Rust is a rather different language from Ruby and presents some more challenges. In particular, it's likely that to properly analyze Rust code we'll need more information than just the AST of the files in the CodeQL database - we'll also need to see information like flags passed to We're hoping to improve the experience of external contributors when developing an extractor at some point in the mid-term future, but unfortunately for now the lack of documentation would make this very tricky, so I would probably caution you against such an endeavour (especially for a fairly complex compiled language like Rust). |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for the super detailed answer! I can see that this is a much more complex that requires the development and maintenance of several people to achieve it. I hope that in the future this process is much more documented so that it can spark future contributions. Thank you for your time! |
BetaWas this translation helpful?Give feedback.
All reactions
-
Wondering if there have been any developments pertaining to rust support? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I'm no longer working at GitHub, but@aeisenberg might have more information on this. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This is something we are working on, but I can't give you any timeline (I can't even guarantee that rust support in CodeQL will be released in a product). Please keep reading our changelog posts for when we release rust support in public beta. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
-
Please do add this, especially so that it can be enabled for things like solana/anchor projects |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hey everyone, just wanted to let you know that we shipped support for Rust in CodeQL topublic preview. Give it a go andlet us know how things went for you! |
BetaWas this translation helpful?Give feedback.