macro-string
This crate is a helper library for procedural macros to perform eager evaluation
of standard library string macros like concat!
and env!
in macro input.
For example, to implement a macro such as the following:
// Parses JSON at compile time and expands to a serde_json::Value.
let j = include_json!;
the implementation of include_json!
will need to parse and eagerly evaluate
the two macro calls within its input tokens.
use MacroString;
use TokenStream;
use Span;
use fs;
use parse_macro_input;