diplomat 0.5.0

The diplomat FFI generation macro
Documentation
---
source: macro/src/lib.rs
expression: "rustfmt_code(&gen_bridge(parse_quote! {\n                            mod ffi\n                            {\n                                enum Abc { A, B = 123, } impl Abc\n                                { pub fn do_something(& self) { unimplemented! () } }\n                            }\n                        }).to_token_stream().to_string())"
---
mod ffi {
    #[repr(C)]
    enum Abc {
        A,
        B = 123,
    }
    impl Abc {
        pub fn do_something(&self) {
            unimplemented!()
        }
    }
    #[no_mangle]
    extern "C" fn Abc_do_something(this: &Abc) {
        this.do_something()
    }
    #[no_mangle]
    extern "C" fn Abc_destroy(this: Box<Abc>) {}
}