5 releases

0.1.4 Jul 10, 2018
0.1.3 Mar 15, 2017
0.1.2 Mar 15, 2017
0.1.1 Mar 14, 2017
0.1.0 Mar 10, 2017

#26 in Procedural macro helpers

Download history 73/week @ 2018-09-19 245/week @ 2018-09-26 311/week @ 2018-10-03 466/week @ 2018-10-10 491/week @ 2018-10-17 215/week @ 2018-10-24 238/week @ 2018-10-31 237/week @ 2018-11-07 263/week @ 2018-11-14 315/week @ 2018-11-21 179/week @ 2018-11-28 254/week @ 2018-12-05 270/week @ 2018-12-12

910 downloads per month

MIT/Apache

7KB
78 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
~22K SLoC