You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prost already can generate types supporting Clone and PartialEq, which is great. We'd like to also be able to derive other traits, like Default, or the various traits used by fuzzers like cargo fuzz. Rust's orphan rules make this hard in the context of code generation.
We currently only have ~50 code generated types, so we could write our own impls manually, but maybe it would possible to add trait derivations to the generated code via configuration? Theres already a mechanism for switching ~off the already supported traits; I am interested in going the other direction.
Prost already can generate types supporting Clone and PartialEq, which is great. We'd like to also be able to derive other traits, like Default, or the various traits used by fuzzers like cargo fuzz. Rust's orphan rules make this hard in the context of code generation.
We currently only have ~50 code generated types, so we could write our own impls manually, but maybe it would possible to add trait derivations to the generated code via configuration? Theres already a mechanism for switching ~off the already supported traits; I am interested in going the other direction.
Related: #493
The text was updated successfully, but these errors were encountered: