Skip to content

Releases: BD103/mergeme

v0.2.0

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.

v0.1.1

Choose a tag to compare

@BD103 BD103 released this 05 May 14:10

All Changes: v0.1.0...v0.1.1

Fixed

  • #[derive(Merge)] no longer passes field attributes to the generated partial struct.
    • A later release will support passing through both struct and field attributes to the partial struct, so this feature isn't going away forever.

v0.1.0

Choose a tag to compare

@BD103 BD103 released this 05 May 14:02

All Changes: v0.1.0

Added

  • Initial commit! :)