Export tokens to other crates. Now with 100% less proc macros!
This crate provides the [export
] macro which allows exporting tokens.
The concept is similar to that used by the inspiration for this crate macromagic.
Namely, a macrorules is generated alongside the tokens to be exported. This macro_rules will invoke a passed macro with the tokens exported. Simple as that.
The difference to macromagic is that this
crate does it all with one macro_rules!
macro. No more need to poll in a set of proc macros
if you don't need the full power of macromagic. Instead use [export
] to generate a
macro you or a dependant can use. Also, a dependant doesn't need to know about
mini_macro_magic
to use the generated macro_rules. They are fully self contained.
mini_macro_magic
is fully no_std
compatible.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mini-macro-rules by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.