Crate bindgen [] [src]

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.

Modules

chooser

A public API for more fine-grained customization of bindgen behavior.

Structs

BindgenOptions [
Deprecated
]

Configuration options for generated bindings.

Bindings

Generated Rust bindings.

Builder

Configure and generate Rust bindings for a C/C++ header.

ClangVersion

Extracted Clang version data

CodegenConfig

A type used to indicate which kind of items do we have to generate.

Enums

LinkType

The linking type to use with a given library.

Functions

builder

Construct a new Builder.

clang_version

Get the major and the minor semvar numbers of Clang's version

parse_one

Parse one Item from the Clang cursor.