{"id":57233,"library":"pest","title":"pest","description":"The Elegant Parser: a PEG parser generator for Rust.","status":"active","version":"2.8.6","language":"rust","source_language":null,"source_url":"https://github.com/pest-parser/pest","tags":["parsing","peg","grammar","parser-generator"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npest = \"2.8.6\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add pest","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Parser","correct":"use pest::Parser;"}],"quickstart":{"code":"use pest::Parser;\n\n#[derive(Parser)]\n#[grammar_inline = \"greeting = { \\\"hello\\\" ~ \\\"world\\\" }\"]\nstruct GreetingParser;\n\nlet pairs = GreetingParser::parse(Rule::greeting, \"helloworld\").unwrap();\nprintln!(\"Parsed: {:?}\", pairs);","lang":"rust","description":"Define a PEG grammar inline and parse input using the generated parser."},"warnings":[{"fix":"Use #[grammar_inline = \"...\"] for inline grammar or ensure .pest file is in the correct path","message":"Grammar files must be included at compile time via #[grammar_inline] or #[grammar_file]","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'eleg':3 'generat':8,16 'grammar':13 'pars':11 'parser':4,7,15 'parser-gener':14 'peg':6,12 'pest':1 'rust':10","created_at":"2026-06-16T15:34:11.338959+00:00","updated_at":"2026-06-16T15:34:11.338959+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://pest.rs/","github":"https://github.com/pest-parser/pest","docs":"https://docs.rs/pest/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}