interoptopus_proc_impl 0.16.0

Macros to produce Interoptopus item info.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use quote::quote;
use syn::{ItemStruct, parse_quote};

mod util;

#[test]
fn generics() {
    let item: ItemStruct = parse_quote! {
        #[ffi]
        struct Foo<T: TypeInfo> {
            t: T,
        }
    };

    insta::assert_snapshot!(expand_ffi!(item));
}