tafia / quick-protobuf

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

Mark deprecated fields instead of ignoring them #189

Closed yzsolt closed 3 years ago

yzsolt commented 3 years ago

Currently all deprecated Proto fields are ignored when generating Rust code, making them inaccessible. I think this isn't the right thing to do, they should be marked with #[deprecated] instead (documentation).

If you agree, I'm up for making the necessary changes.

tafia commented 3 years ago

I agree in principle but I don't really like code bloat. Could you make it as optional?