Crate cbindgen [] [src]

Structs

AnnotationSet

A set of annotations specified by a document comment.

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.

GeneratedBindings

A GeneratedBindings is a completed bindings file ready to be written.

Library

A library contains all of the information needed to generate bindings for a rust library.

PackageRef
ParseConfig

Settings to apply when parsing.

StructConfig

Settings to apply to generated structs.

Enums

AnnotationValue

A value specified by an annotation.

Braces

A style of braces to use for generating code.

IdentifierType

The type of identifier to be renamed.

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.