interoptopus_proc_impl 0.16.0-alpha.7

Macros to produce Interoptopus item info.
Documentation
use quote::quote;
use syn::{ItemFn, parse_quote};

mod util;

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

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

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

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