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

I noticed that `pb-rs` fails to compile a number of .proto schema files due to it only looking for message and enum definitions one level up. Other compilers do not...

bug

I just noticed that the generated code does something like: ``` while !r.is_eof() { match r.next_tag(bytes) { ``` which means that if it is fed a buffer with multiple protobuf...

`-...i32 as u64` results in sign-extending all the way to 64 bits, which I assume is incorrect according to the protobuf spec. Changing it to `as u32 as u64` should...

Protobuf 3.15 stabilized 'optional' in proto3: https://github.com/protocolbuffers/protobuf/releases/tag/v3.15.0 These, however, behave entirely differently from proto2 optionals. Thus, the following behaviour (effectively ignoring the 'optional' marker) is invalid: ``` q3k@sizeableunit ~/lolproto $...

For example: ``` syntax = "proto2"; ... required bool foo = 1 [default = true]; ``` Generated rust code still defaults to `false` for field `foo`.

Hi, I was validating quick prot with prost protocol. Encoded data was different from the prost output. Then I realized that the length of the encoded data is added at...

Why do `serialize_into_slice()` and `deserialize_from_slice()` add an an extra length before the data? This seems to be incompatible with the official library. Can I add some new functions like `serialize_into_slice_without_len()`...

cargo clippy --fix

`read_packed_fixed` converts a `&[u8]` to a `&[T]` without checking that the incoming reference satisfies the alignment of the outgoing reference. Since references guarantee that they are properly aligned and both...