Repository navigation
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.
- To pass attributes to the partial struct, use
- Linked to https://docs.rs/mergeme in
Cargo.toml.
Changed
- Improved the diagnostic messages and spans for many errors.
mergeme_derivenow only enables the features ofsynthat it needs, which should slightly improve compilation speed.
Removed
- It is no longer possible to specify multiple
#[partial(PartialName)]attributes on the struct.