interoptopus_proc_impl 0.16.0-alpha.13

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

mod util;

#[test]
fn fields() {
    let item: ItemStruct = parse_quote! {
        #[ffi]
        struct Foo {
            x: u8,
            y: String,
            z: f32,
        }
    };

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