quick-protobuf icon indicating copy to clipboard operation
quick-protobuf copied to clipboard

A rust implementation of protobuf parser

Results 72 quick-protobuf issues
Sort by recently updated
recently updated
newest added

[These lines](https://github.com/tafia/quick-protobuf/blob/5b4685a7a8b1f471e45b435839202233732b45cd/pb-rs/README.md?plain=1#L64-L66) seem to be wrong: ```rust mod hello { include_bytes!(concat!(env!("OUT_DIR")), "/hello.rs"); } ``` It should be `include!` instead of `include_bytes!` and parentheses are wrong. Moreover, top-level attributes make inclusion...

# Proposal I'd like to hear if there are any opinions on moving to a generated getter/setter API for fields in messages, enums etc. rather than simply making fields public...

I have the following situation, a field in my protobuf (when stored in rust) needs encoding to bytes before it can get stored in the protobuf. I would like to...

I have two changes on my personal repo for adding attributes to structs. One is to allow custom structs via [build flags](https://github.com/tafia/quick-protobuf/commit/1e30a6561d83d7f42daa401f1ed35a5a73433b1e) while the other adds support for magic [proto...

`pb-rs` (version 0.10.0) fails when converting this file https://github.com/onnx/onnx/blob/main/onnx/onnx.proto#L692 and it succeeds when I remove that semicolon. Is this expected?

I have the following schema: ```protobuf syntax = "proto3"; package messages; message Query { optional string query_id = 1; optional string dataset = 2; optional string query = 3; optional...

fix: https://github.com/tafia/quick-protobuf/issues/261 test copied from: https://github.com/onnx/onnx/blob/1e3be88265ec2aa84a5177f8282d5d64bb6bb4a0/onnx/onnx.proto#L694 The trailing semi for nested message is optional, others like `message` or `enum` corretly handle it but oneof does not.

Hi, `rust-libp2p` depends highly on `quick-protobuf` and there have been unattended requests[¹](https://github.com/tafia/quick-protobuf/pull/247#issuecomment-1547101766) [²](https://github.com/tafia/quick-protobuf/issues/252) for a release along some important PR's like [¹](https://github.com/tafia/quick-protobuf/pull/249) unattended for a while. Is there anything we...

I've tried to compile the reserved enum field example from https://protobuf.dev/programming-guides/proto3/#reserved `reserved_enum.proto` ``` syntax = "proto3"; package my.package; enum Foo { reserved 2, 15, 9 to 11, 40 to max;...

This PR adds support for custom derives on enums (like the already supported custom derives on structs). This is useful, for example, to add `serde::Deserialize` and `serde::Serialize` to both structs...