procmeta 0.3.5

integration procmeta-core and procmeta-proc
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(test)]
mod tests {
    use procmeta_core::expand::token::expand;
    use syn::{parse_quote, DeriveInput};

    #[test]
    fn test_expand() -> anyhow::Result<()> {
        let input: DeriveInput = parse_quote! {
            #[derive(GetTokenStream)]
            pub enum Ass {
                S(Student),
            }
        };
        let token_stream = expand(input).to_string();
        println!("{token_stream}");
        Ok(())
    }
}