diplomat 0.10.0

The diplomat FFI generation macro
Documentation
---
source: macro/src/lib.rs
expression: "rustfmt_code(&gen_bridge(parse_quote! {\n                            mod ffi\n                            {\n                                struct Foo {} #[cfg(feature = \"bar\")] impl Foo\n                                {\n                                    #[cfg(feature = \"foo\")] pub fn bar(s: u8)\n                                    { unimplemented!() }\n                                }\n                            }\n                        }).to_token_stream().to_string())"
---
mod ffi {
    #[repr(C)]
    struct Foo {}
    #[cfg(feature = "bar")]
    impl Foo {
        #[cfg(feature = "foo")]
        pub fn bar(s: u8) {
            unimplemented!()
        }
    }
    use core::ffi::c_void;
    use diplomat_runtime::*;
    #[no_mangle]
    #[cfg(feature = "bar")]
    #[cfg(feature = "foo")]
    extern "C" fn Foo_bar(s: u8) {
        Foo::bar(s)
    }
}