Crate bindgen

source ·
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.

Macros

Structs

Generated Rust bindings.
Configure and generate Rust bindings for a C/C++ header.
Extracted Clang version data
A type used to indicate which kind of items we have to generate.

Enums

A helper type that represents different enum variations.
Represents the version of the Rust language to target.

Constants

Latest stable release of Rust

Statics

Strings of allowed RustTarget values

Functions

Construct a new Builder.
Get the major and the minor semver numbers of Clang’s version