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
8
9
use synonym::Synonym;

// see https://rust-lang.github.io/rust-clippy/master/index.html#/incorrect_clone_impl_on_copy_type
// this test only ensures that cargo clippy doesn't show a warning
#[test]
fn clone_derived_() {
    #[derive(Synonym)]
    struct Foo(u32);
}