stringify-attr
Attribute macros for stringifying. Probably only useful in unit tests and debugging, but who knows.
Usage
Basically these macros allow you to stringify using attribute macros instead of the normal stringify!
. Since attribute macros must produce an item. Each macro produces a result!
macro which expands to the desired string.
You can stringify just attributes:
use stringify_attr;
assert_eq!;
Just items:
use stringify_item;
assert_eq!;
Or the whole thing:
use stringify_all;
assert_eq!;
Since attribute macros cannot differential being invoked with different delimeters, different attributes are provided:
use stringify_braces as stringify_all;
assert_eq!;
Note that these attributes still produce the text "stringify_all"
in the output.