Skip to content

[FR] Rust support #8

@keerthanap8898

Description

@keerthanap8898

Adding Rust parser

OpenAnt currently supports Go, Python, JS/TS(beta), C/C++(beta), PHP(beta), Ruby(beta) only.

  • However, I want to try this tool with repositories that contain rust-crates &/or other Rust components.
  • I'll maybe even submit some PRs soon if not later; but I'd love to hear what the maintainers think.

Hence, I'm also looping in @ar7casper since they've worked on most other parsers & language support, if not all. So I'd love to especially hear what you think.


Goal:

Add a Rust parser so repos containing Rust crates can run - " $openant init ... -l rust", " $openant parse" successfully.

Questions:

  1. Which approach best matches OpenAnt’s parser architecture: tree-sitter-rust, rust-analyzer, or another AST strategy?
  2. Are there any must-have outputs/IR fields the Rust parser needs to populate for later stages ( enhancements / analysis / verification )?
  3. How this maps against your current plans; &
  4. If you've got other conflicting considerations &/or blockers that I may be unaware of.

Hence, if this sounds good,

I could perhaps try & submit a minimal Rust fixture & parser, etc.

...especially if it's not on your immediate agenda. Lmk.



Example personal repo

( that I'd love to assess using OpenAnt ):
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions