tlkit 0.3.0

Tool Kit integration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use syn::{parse_quote, DeriveInput};
use tlkit_expand::structure::convert;

#[test]
fn test_try_from_expand() -> syn::Result<()> {
    let input: DeriveInput = parse_quote! {
        #[into(target = AddProductBo)]
        pub struct Request {
            pub user_id: String,
        }
    };
    let token_stream = convert::expand(input).unwrap().to_string();
    println!("{token_stream}");
    Ok(())
}