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 →
Top 3 Rust Codemod 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.
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
Rust Codemod related posts
-
ast-grep got 6000 stars!
-
Ask HN: I have been unable to land a job in two years, does anybody
-
Migrate to React 19 with ast-grep
-
ClangQL: A tool to run SQL-like query on C/C++ Code
-
AST-grep(sg) AST grep based on Treesitter
-
Show HN: GritQL, a Rust CLI for rewriting source code
-
How I build a chatbot for my OSS project, for free, without code!
-
A note from our sponsor - InfluxDB
www.influxdata.com | 1 Jun 2024
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