I'm trying to export some Rust functions as a DLL to be used in a larger application, but instead of the usual extern "C" calling convention, I'm using stdcall. With stdcall, cbindgen doesn't emit declarations.
Would it be possible to tweak the rules so cbindgen will make bindings for anything marked extern and #[no_mangle], no matter the calling convention? I don't think there's any time you wouldn't want bindings for a function marked extern.
This looks like it's related to #49, but affects all forms of extern, not just where the "C" is omitted.
I'm trying to export some Rust functions as a DLL to be used in a larger application, but instead of the usual
extern "C"calling convention, I'm usingstdcall. Withstdcall,cbindgendoesn't emit declarations.Would it be possible to tweak the rules so
cbindgenwill make bindings for anything markedexternand#[no_mangle], no matter the calling convention? I don't think there's any time you wouldn't want bindings for a function markedextern.This looks like it's related to #49, but affects all forms of
extern, not just where the"C"is omitted.