protobuf-ast-parser

Crates.ioprotobuf-ast-parser
lib.rsprotobuf-ast-parser
version0.1.0
created_at2025-12-28 13:21:44.543681+00
updated_at2025-12-28 13:21:44.543681+00
descriptionA Protocol Buffers (proto2/proto3) parser that produces a typed AST with comments
homepage
repositoryhttps://github.com/n08i40k/protobuf-parser
max_upload_size
id2008816
size251,521
Nikita (n08i40k)

documentation

README

protobuf-parser

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.

Usage

use protobuf_parser::parse;

let source = r#"
syntax = "proto3";
message User { string name = 1; }
"#;

let ast = parse(source)?;
Commit count: 0

cargo fmt