interoptopus_proc_impl 0.16.0-alpha.12

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

mod util;

#[test]
fn basic_expansion() {
    let item: ItemFn = parse_quote! {
        #[ffi]
        fn foo() {}
    };

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