Registry / other / pest-derive

pest-derive

JSON →
library2.8.6rscratesunverified

pest's derive macro for generating parsers from grammar files.

# Cargo.toml [dependencies] pest_derive = "2.8.6"
INSTALL
IMPORT
SIG · PEST-DERIVE
P
pest-derive
otherrustv2.8.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
use pest_derive::Parser;

Derives a parser from a pest grammar file.

use pest_derive::Parser; #[derive(Parser)] #[grammar = "mygrammar.pest"] struct MyParser; fn main() { println!("Parser derived"); }
Debug
Known issues
gotchaRequires a grammar file at compile time; path must be relative to Cargo.toml.
fix
Ensure the grammar file exists and the path is correct in the `#[grammar = "..."]` attribute.
affects: *
Upgrade
Version history
2.8.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pest-derive — cargo add pest-derive · libregistry