Module bindgen
Generate Rust bindings to C and C++ libraries.
See crate ::bindgen.
Modules
- callbacks A public API for more fine-grained customization of bindgen behavior.
Structs
- Bindings Generated Rust bindings.
- Builder Configure and generate Rust bindings for a C/C++ header.
-
CargoCallbacks
A
ParseCallbacksimplementation that will act on file includes by echoing a rerun-if-changed line and on env variable usage by echoing a rerun-if-env-changed line - ClangVersion Extracted Clang version data
- CodegenConfig A type used to indicate which kind of items we have to generate.
Enums
- BindgenError Error type for rust-bindgen.
- Formatter Formatting tools that can be used to format the bindings
Functions
-
builder
Construct a new
Builder. - clang_version Get the major and the minor semver numbers of Clang's version
Constants
-
CargoCallbacks
Create a new
CargoCallbacksvalue withCargoCallbacks::rerun_on_header_filesdisabled. - DEFAULT_ANON_FIELDS_PREFIX Default prefix for the anon fields.