Rust Refactoring

Open-source Rust projects categorized as Refactoring

Top 5 Rust Refactoring 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
  • phanalist

    Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.

  • Project mention: Phanalist: Easy to use, Performant static analyzer for PHP | news.ycombinator.com | 2024-05-27
  • refactoring-to-rust

    Code to accompany Refactoring to Rust

  • spacemod

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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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 Refactoring related posts

  • Phanalist: Easy to use, Performant static analyzer for PHP

    1 project | news.ycombinator.com | 27 May 2024
  • Improve your CI output.

    1 project | 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
  • Show HN: GritQL, a Rust CLI for rewriting source code

    8 projects | news.ycombinator.com | 20 Mar 2024
  • Meet ast-grep: a Rust-based tool for code searching, linting, rewriting using AST

    10 projects | /r/rust | 11 May 2023
  • Why did you switch from another language to Rust? Do you regret not learning it earlier?

    9 projects | /r/rust | 25 Jul 2022
  • Show HN: Code Refactoring Tool for the Terminal

    1 project | news.ycombinator.com | 28 Dec 2020
  • A note from our sponsor - SaaSHub
    www.saashub.com | 31 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 ast-grep 6,228
2 gritql 2,615
3 phanalist 112
4 refactoring-to-rust 84
5 spacemod 41

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