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
use quote::quote;
use syn::{ItemFn, parse_quote};

mod util;

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

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