Crate cxx_gen

Source
Expand description

The CXX code generator for constructing and compiling C++ code.

This is intended as a mechanism for embedding the cxx crate into higher-level code generators. See dtolnay/cxx#235 and https://github.com/google/autocxx.

Structs§

Error
GeneratedCode
Results of code generation.
Include
A header to #include.
Opt
Options for C++ code generation.

Enums§

CfgResult
Result of a CfgEvaluator evaluation.
IncludeKind
Whether to emit #include "path" or #include <path>.

Statics§

HEADER
The complete contents of the “rust/cxx.h” header.

Traits§

CfgEvaluator
Logic to decide whether a conditional compilation attribute is enabled or disabled.

Functions§

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