-
-
Save lqd/1d882a8e8c9d41f3318ad98d60f8a11a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate proc_macro; | |
use proc_macro::TokenStream; | |
#[proc_macro_attribute] | |
pub fn dom_struct(_: TokenStream, _: TokenStream) -> TokenStream { | |
"#[derive(DomObject)] struct S { | |
qux: Qux<Qux<Baz> >, | |
bar: Box<Bar>, | |
}".parse().unwrap() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment