SaaSHub helps you find the best software and product alternatives Learn more →
Top 5 Rust Refactoring Projects
-
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.
-
phanalist
Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
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)
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
Project mention: Phanalist: Easy to use, Performant static analyzer for PHP | news.ycombinator.com | 2024-05-27
Rust Refactoring related posts
-
Phanalist: Easy to use, Performant static analyzer for PHP
-
Improve your CI output.
-
Ask HN: I have been unable to land a job in two years, does anybody
-
Show HN: GritQL, a Rust CLI for rewriting source code
-
Meet ast-grep: a Rust-based tool for code searching, linting, rewriting using AST
-
Why did you switch from another language to Rust? Do you regret not learning it earlier?
-
Show HN: Code Refactoring Tool for the Terminal
-
A note from our sponsor - SaaSHub
www.saashub.com | 3 Jun 2024
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