| Crates.io | protobuf-ast-parser |
| lib.rs | protobuf-ast-parser |
| version | 0.1.0 |
| created_at | 2025-12-28 13:21:44.543681+00 |
| updated_at | 2025-12-28 13:21:44.543681+00 |
| description | A Protocol Buffers (proto2/proto3) parser that produces a typed AST with comments |
| homepage | |
| repository | https://github.com/n08i40k/protobuf-parser |
| max_upload_size | |
| id | 2008816 |
| size | 251,521 |
A Rust parser for Protocol Buffers (proto2 and proto3) built with LALRPOP + Logos.
It focuses on turning .proto files into a lightweight AST while preserving comments,
which is handy for tooling, linting, and analysis workflows.
use protobuf_parser::parse;
let source = r#"
syntax = "proto3";
message User { string name = 1; }
"#;
let ast = parse(source)?;