This is an automated email from the ASF dual-hosted git repository.
Kriskras99 pushed a change to branch refactor/derive_implementation
in repository https://gitbox.apache.org/repos/asf/avro-rs.git
from 8bf4969 refactor: Centralize generating the actual `impl` in the
`Implementation` struct
add d5b14dc fix: Review feedback - Only allow the default attribute on
the field of a transparent struct - Improve the plain enum schema generation
- Skipped variants are now actually skipped - The container default attribute
is used first, then comes the variant default attribute - `serde_json::Value`s
are now constructed instead of parsed at runtime
No new revisions were added by this update.
Summary of changes:
avro/src/serde/ser_schema/mod.rs | 6 +-
avro_derive/src/attributes/mod.rs | 33 ++---
avro_derive/src/attributes/serde.rs | 6 +-
avro_derive/src/enums/plain.rs | 149 +++++++++++++--------
avro_derive/src/fields.rs | 10 +-
avro_derive/src/structs.rs | 22 ++-
avro_derive/src/utils.rs | 63 +++++++++
avro_derive/tests/derive.rs | 17 +--
.../avro_3687_basic_enum_with_default.expanded.rs | 4 +-
.../avro_3709_record_field_attributes.expanded.rs | 10 +-
avro_derive/tests/serde.rs | 2 +-
.../avro_3687_basic_enum_with_default_twice.stderr | 12 --
..._enum.rs => avro_rs_561_transparent_default.rs} | 9 +-
.../ui/avro_rs_561_transparent_default.stderr | 9 ++
14 files changed, 220 insertions(+), 132 deletions(-)
copy avro_derive/tests/ui/{avro_rs_501_non_basic_enum.rs =>
avro_rs_561_transparent_default.rs} (92%)
create mode 100644 avro_derive/tests/ui/avro_rs_561_transparent_default.stderr