Rust Parser

Open-source Rust projects categorized as Parser

Top 23 Rust Parser Projects

  • swc

    Rust-based platform for the Web

    Project mention: Storybook 8 Beta | dev.to | 2024-02-06

    First, we switched the default compiler for new projects from Babel to SWC (Speedy Web Compiler). SWC is dramatically faster than Babel and requires zero configuration. We’ll continue to support Babel in any project currently using it.

  • vector

    A high-performance observability data pipeline.

    Project mention: Hacks to reduce cloud spend | /r/sre | 2023-12-06

    we are doing something similar with OTEL but we are looking at using https://vector.dev/

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

  • tree-sitter

    An incremental parsing system for programming tools

    Project mention: An incremental parsing system for programming tools | news.ycombinator.com | 2023-05-27
  • nom

    Rust parser combinator framework

    Project mention: Planespotting with Rust: using nom to parse ADS-B messages | dev.to | 2023-10-28

    Just in case you are not familiar with nom, it is a parser combinator written in Rust. The most basic thing you can do with it is import one of its parsing functions, give it some byte or string input and then get a Result as output with the parsed value and the rest of the input or an error if the parser failed. tag for example is used to recognize literal character/byte sequences.

  • oxc

    ⚓ A collection of JavaScript tools written in Rust.

    Project mention: The JavaScript Oxidation Compiler | news.ycombinator.com | 2023-12-16
  • lightningcss

    An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.

    Project mention: I'm fed up with it, so I'm writing a browser | news.ycombinator.com | 2023-09-22

    Would you consider using some libraries in your project? There are lots of good ones in the Rust ecosystem, and many of them are not part of any existing browsers.

    For example:

    - https://github.com/servo/html5ever (HTML parsing - note: this is used in Servo)

    - https://github.com/parcel-bundler/lightningcss (CSS parsing)

    - https://github.com/DioxusLabs/taffy (web layout)

    - https://github.com/pop-os/cosmic-text (text layout and rendering)

    Obviously you should be free to work on whatever you like, but just as a benchmark on the scope of your project: I spent ~6 months implementing just the CSS Grid algorithm in Taffy last year. An entire browser from literal scratch is probably a 10 year project for one person.

  • boa

    Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the language.

    Project mention: A list of JavaScript engines, runtimes, interpreters | /r/learnjavascript | 2023-12-10

    boa

  • 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.

  • pest

    The Elegant Parser (by pest-parser)

    Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • chumsky

    Write expressive, high-performance parsers with ease.

    Project mention: nom > regex | /r/rust | 2023-12-06

    there’s also chumsky: https://github.com/zesterer/chumsky

  • lalrpop

    LR(1) parser generator for Rust

    Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • rslint

    A (WIP) Extremely fast JavaScript and TypeScript linter and Rust crate

  • logos

    Create ridiculously fast Lexers (by maciejhirsz)

    Project mention: Beating the fastest lexer generator in Rust | /r/rust | 2023-07-11

    This is mighty impressive! I've been trying to get some motivation for the mythical rewrite of the proc macro in Logos, and this might just do it for me :D. I'll have a proper look later today and see if any of your findings have something that can be generalized. Also really surprised to see aarch64 doing better than x86_64 since the latter is what I've been optimizing for!

  • sqlparser-rs

    Extensible SQL Lexer and Parser for Rust

    Project mention: Introducing SQLPage : write websites entirely in SQL | /r/rust | 2023-07-04

    sqlparser to parse SQL queries and detect variable bindings

  • pulldown-cmark

    An efficient, reliable parser for CommonMark, a standard dialect of Markdown

    Project mention: CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 3 | dev.to | 2024-01-08

    As a platform that allows expressiveness, we want our users to be bold enough to ask and answer questions with either plain text or some markdowns. Compiling markdown to HTML in Rust can be done via the pulldown-cmark crate. We used it in this utility function:

  • rust-csv

    A CSV parser for Rust, with Serde support.

    Project mention: A question for all those that use Python | /r/rust | 2023-04-07

    Serde for most of your input and output formats, with the serde-yaml and csv crates for format backends.

  • goscript

    An alternative implementation of Golang specs, written in Rust for embedding or wrapping.

    Project mention: An alternative implementation of Golang specs, written in Rust | news.ycombinator.com | 2023-05-07
  • ariadne

    A fancy diagnostics & error reporting crate (by zesterer)

    Project mention: What languages have the best error message rendering styles in the terminal? | /r/ProgrammingLanguages | 2023-07-12

    To complement, Nushell's error rendering is done with miette (whose name is a reference to this cute meme AFAIK). There is also another notable Rust error rendering lib: ariadne. So you can get the same beautiful error rendering in your own projects :D

  • diffsitter

    A tree-sitter based AST difftool to get meaningful semantic diffs

    Project mention: AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting | news.ycombinator.com | 2023-12-10

    Or https://github.com/afnanenayet/diffsitter. I've tried both and I like them. No preference or notable opinions on them yet!

  • calamine

    A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets

  • rust-peg

    Parsing Expression Grammar (PEG) parser generator for Rust

    Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • lol-html

    Low output latency streaming HTML parser/rewriter with CSS selector-based API

  • combine

    A parser combinator library for Rust

  • termimad

    A library to display rich (Markdown) snippets and texts in a rust terminal application

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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). The latest post mention was on 2024-02-06.

Rust Parser related posts

Index

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

Project Stars
1 swc 29,579
2 vector 15,573
3 tree-sitter 15,339
4 nom 8,866
5 oxc 7,830
6 lightningcss 5,513
7 boa 4,475
8 pest 4,263
9 chumsky 3,195
10 lalrpop 2,815
11 rslint 2,656
12 logos 2,532
13 sqlparser-rs 2,312
14 pulldown-cmark 1,876
15 rust-csv 1,569
16 goscript 1,509
17 ariadne 1,509
18 diffsitter 1,485
19 calamine 1,418
20 rust-peg 1,361
21 lol-html 1,360
22 combine 1,246
23 termimad 820
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com