Skip to content

v0.2.0

Latest

Choose a tag to compare

@BD103 BD103 released this 06 May 15:08

All Changes: v0.1.1...v0.2.0

Added

  • Support for passing struct and field attributes to the generated partial struct in #[derive(Merge)].
    • To pass attributes to the partial struct, use #[partial(PartialName, foo(Bar), baz = "fleeb")] on the struct.
    • To pass attributes to the partial struct's fields, use #[partial(foo(Bar), baz = "fleeb")] on the struct's fields.
  • Linked to https://docs.rs/mergeme in Cargo.toml.

Changed

  • Improved the diagnostic messages and spans for many errors.
  • mergeme_derive now only enables the features of syn that it needs, which should slightly improve compilation speed.

Removed

  • It is no longer possible to specify multiple #[partial(PartialName)] attributes on the struct.