cxx_gen

Function generate_header_and_cc

Source
pub fn generate_header_and_cc(
    rust_source: TokenStream,
    opt: &Opt,
) -> Result<GeneratedCode, Error>
Expand description

Generate C++ bindings code from a Rust token stream. This should be a Rust token stream which somewhere contains a #[cxx::bridge] mod {}.