Crate nbindgen

Source

Structs§

Bindings
A bindings header that can be written.
Builder
A builder for generating a bindings header.
Config
A collection of settings to customize the generated bindings.
ConstantConfig
Settings to apply to generated constants.
EnumConfig
Settings to apply to generated enums.
ExportConfig
Settings to apply when exporting items.
FunctionConfig
Settings to apply to generated functions.
LayoutConfig
Settings to apply to generated types with layout modifiers.
MacroExpansionConfig
Settings for custom macro expansion.
ParseConfig
Settings to apply when parsing.
ParseExpandConfig
Settings to apply when running rustc --pretty=expanded
StructConfig
Settings to apply to generated structs.

Enums§

DocumentationStyle
How the comments containing documentation should be styled.
Error
ItemType
Different item types that we can generate and filter.
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.