derive-for 0.1.0

Macro for defining structs using the same derive procedural macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# derive-for
A macro for defining multiple structs using the same derive procedures.

The most common use case is in combination with the [`derive_more`](https://crates.io/crates/derive_more) for using the
same derives to create transparent newtypes.

## Usage
```rust
derive_for!(
( Clone, Debug, PartialEq, Eq)
pub struct Foo{a: i32, name: String};
pub struct Bar(u32, u32);
);
```

`Clone`, `Debug`, `PartialEq`, and `Eq` will now be implemented for both
`Foo` and `Bar`. If deriving many traits for many newtypes this significantly
shortens the code.