Crate cbindgen [] [src]

Structs

AnnotationSet

A set of annotations specified by a document comment.

Bindings
Cargo

A collection of metadata for a library from cargo.

Config

A collection of settings to customize the generated bindings.

EnumConfig

Settings to apply to generated enums.

FunctionConfig

Settings to apply to generated functions.

Library
LibraryBuilder
PackageRef

A reference to a package including it's name and the specific version.

ParseConfig

Settings to apply when parsing.

StructConfig

Settings to apply to generated structs.

Enums

Braces

A style of braces to use for generating code.

Language

A language type to generate bindings for.

Layout

A type of layout to use when generating long lines of code.

RenameRule

A rule to apply to an identifier when generating bindings.

Constants

VERSION

Functions

generate

A utility function for build scripts to generate bindings for a crate, using a cbindgen.toml if it exists.

generate_with_config

A utility function for build scripts to generate bindings for a crate with a custom config.