9 releases

✓ Uses Rust 2018 edition

0.2.1 Feb 12, 2019
0.2.0 Jan 30, 2019
0.1.6 Oct 17, 2018
0.1.4 Jul 10, 2018
0.1.3 Mar 15, 2017
Download history 181/week @ 2018-12-20 99/week @ 2018-12-27 127/week @ 2019-01-03 205/week @ 2019-01-10 376/week @ 2019-01-17 272/week @ 2019-01-24 317/week @ 2019-01-31 345/week @ 2019-02-07 237/week @ 2019-02-14 282/week @ 2019-02-21 610/week @ 2019-02-28 723/week @ 2019-03-07 499/week @ 2019-03-14 406/week @ 2019-03-21 401/week @ 2019-03-28

1,597 downloads per month

MIT/Apache

8KB
85 lines

named_type

crates.io docs.rs CircleCI

This is a small Rust procedural macro that lets you get the name of a type, whether it is an enum or a struct. By simply deriving the trait on your type, you can automatically add a function to return the name of the type.


lib.rs:

This crate provides support for deriving the NamedType trait from the named_type crate. See that crate for further documentation.

Dependencies

~1MB
~23K SLoC