#[cfg(test)] mod test { use proc_macro2::TokenStream; use procmeta_core::token::GetTokenStream; use procmeta_proc::GetTokenStream; use quote::quote; #[test] fn test_token_stream() { #[derive(GetTokenStream)] pub enum Ass { S(Student), } #[derive(GetTokenStream)] pub struct Student { pub name: String, pub age: i32, } let student = Student { name: "lloyd".to_string(), age: 18, }; let a = Ass::S(student); println!("{}", a.get_token_stream()); } }