tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

Wrong code generated for OneOfs with deprecated fields #187

Closed yzsolt closed 3 years ago

yzsolt commented 3 years ago

The generated Rust enum definitions for OneOfs with deprecated fields, like:

oneof data {
    bytes a = 1;
    bytes b = 2 [deprecated=true];
}

contains the deprecated fields, but the corresponding reader/writer code does not, causing a build error because of the missing match arms.