# pest (Rust)

> The elegant PEG parser generator for Rust

Source: https://talira.ai/catalog/pest-rust-z8e0vep9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parser generators](https://talira.ai/categories/developer-tools/parser-generators), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [pest](https://talira.ai/orgs/pest-parser.md)

pest is a general-purpose parser for Rust built for accessibility, correctness and performance. You write a grammar as a parsing expression grammar (PEG), which reads like regular expressions but can parse complex languages, and pest_derive generates the parser from it. It has an official book, API docs on docs.rs, an online grammar fiddle, and guidance on resource limits for untrusted input.

## Links

- Website: https://pest.rs/
- GitHub: https://github.com/pest-parser/pest
- Docs: https://pest.rs/book

## Problems it solves

- write a parser for a custom language in Rust
- parse a DSL with a PEG grammar
- generate a Rust parser from a grammar file

## Features

- PEG grammars
- parser generated by pest_derive
- online grammar fiddle
- guidance for parsing untrusted input

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.75, adoption 0.75, momentum 0.50, community 0.88, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 22 commits in the last 90 days
- latest release v2.9.7 5 days ago
- 5.4k GitHub stars
- 159 contributors
- accepts sponsorship (Github, Open Collective)
- backed by pest

## Alternatives

- [nom](https://talira.ai/catalog/nom-hrs70ays.md): A Rust parser combinator library for fast, safe binary and text parsers
- [peg](https://talira.ai/catalog/peg-n3v4m78r.md): Packrat parser generator for Go from Parsing Expression Grammars

## Sources

[^1]: https://github.com/pest-parser/pest/blob/master/LICENSE-MIT (checked 29 Nov 2026)
[^2]: https://github.com/pest-parser/pest/blob/master/LICENSE-APACHE (checked 29 Nov 2026)
