synonym 0.1.6

Customizable derive macro to create newtypes. It peeks into the underlying type to choose which traits should be implemented.
Documentation
1
2
3
4
5
6
7
error: proc-macro derive panicked
 --> $DIR/fail-generics.rs:3:10
  |
3 | #[derive(Synonym)]
  |          ^^^^^^^
  |
  = help: message: Synonym supports only tuple structs with single unnamed field. Enums, unions and generic type parameters are not supported