Expand description
Generate Rust bindings for C and C++ libraries.
Provide a C/C++ header file, receive Rust FFI code to call into C/C++ functions and use types defined in the header.
See the Builder
struct for usage.
See the Users Guide for additional documentation.
Modules§
- A public API for more fine-grained customization of bindgen behavior.
Structs§
- Generated Rust bindings.
- Configure and generate Rust bindings for a C/C++ header.
- A ParseCallbacks implementation 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
- Extracted Clang version data
- A type used to indicate which kind of items we have to generate.
- A dynamic set of regular expressions.
Enums§
- A valid rust ABI.
- Enum for how aliases should be translated.
- Error type for rust-bindgen.
- A helper type that represents different enum variations.
- What kind of visibility modifier should be used for a struct or field?
- Formatting tools that can be used to format the bindings
- Enum for the default type of macro constants.
- Enum for how non-
Copy
union
s should be translated. - Represents the version of the Rust language to target.
Constants§
- Cargo
Callbacks Deprecated Create a newCargoCallbacks
value withCargoCallbacks::rerun_on_header_files
disabled. - Default prefix for the anon fields.
- Latest stable release of Rust
Functions§
- Construct a new
Builder
. - Get the major and the minor semver numbers of Clang’s version