mozilla / cbindgen

A project for generating C bindings from Rust code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate a unified header file that can be used in both C and C++

SapphireAmoeba5 opened this issue · comments

Does cbindgen have the functionality to produce header files that can be used in both C and C++ by using macros to conditionally extern "C" them?

Builder::new().with_cpp_compat(true).with_language(Language::C) ... and so on

in build.rs