Rust Codemod

Open-source Rust projects categorized as Codemod

Top 3 Rust Codemod Projects

  • ast-grep

    ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

  • Project mention: amber, a code search & replace tool | news.ycombinator.com | 2024-05-23

    ast-grep is based on tree-sitter parsers and most of the time is spent on parsing.

    There is some optimization to [skip parsing](https://github.com/ast-grep/ast-grep/blob/9f8ed5fb2abf35d928...) but generally I don't expect ast-grep can beat ripgrep or amber. (but sometimes ast-grep can beat grep due to parallel processing)

  • gritql

    GritQL is a query language for searching, linting, and modifying code.

  • Project mention: amber, a code search & replace tool | news.ycombinator.com | 2024-05-23

    Yeah it doesn't look like this is AST-aware at all.

    If you want to do queries that understand the grammar, https://github.com/getgrit/gritql is closer to what you're looking for.

    Ex. here's how you would search for your example of looking for a string unless it's inside a string constant. [0]

    grit apply '"this_string" => `new_string` where { $match <: not within string() }'

    [0] https://app.grit.io/studio?key=v8iA8zIbHs2uCykNpSF_G

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • spacemod

    A easy to understand and powerful text search-and-replace tool

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Codemod related posts

  • ast-grep got 6000 stars!

    2 projects | dev.to | 18 May 2024
  • Ask HN: I have been unable to land a job in two years, does anybody

    1 project | news.ycombinator.com | 3 May 2024
  • Migrate to React 19 with ast-grep

    2 projects | dev.to | 28 Apr 2024
  • ClangQL: A tool to run SQL-like query on C/C++ Code

    3 projects | news.ycombinator.com | 7 Apr 2024
  • AST-grep(sg) AST grep based on Treesitter

    1 project | news.ycombinator.com | 1 Apr 2024
  • Show HN: GritQL, a Rust CLI for rewriting source code

    8 projects | news.ycombinator.com | 20 Mar 2024
  • How I build a chatbot for my OSS project, for free, without code!

    2 projects | dev.to | 31 Dec 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 Jun 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Index

What are some of the best open-source Codemod projects in Rust? This list will help you:

Project Stars
1 ast-grep 6,228
2 gritql 2,615
3 spacemod 41

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com