Struct cbindgen::Config[][src]

pub struct Config {
    pub header: Option<String>,
    pub includes: Vec<String>,
    pub sys_includes: Vec<String>,
    pub trailer: Option<String>,
    pub include_guard: Option<String>,
    pub no_includes: bool,
    pub autogen_warning: Option<String>,
    pub include_version: bool,
    pub namespace: Option<String>,
    pub namespaces: Option<Vec<String>>,
    pub braces: Braces,
    pub line_length: usize,
    pub tab_width: usize,
    pub language: Language,
    pub style: Style,
    pub parse: ParseConfig,
    pub export: ExportConfig,
    pub function: FunctionConfig,
    pub structure: StructConfig,
    pub enumeration: EnumConfig,
    pub constant: ConstantConfig,
    pub defines: HashMap<String, String>,
    pub documentation: bool,
}

A collection of settings to customize the generated bindings.

Fields

Optional text to output at the beginning of the file

A list of additional includes to put at the beginning of the generated header

A list of additional system includes to put at the beginning of the generated header

Optional text to output at the end of the file

Optional name to use for an include guard

Generates no includes at all. Overrides all other include options

This option is useful when using cbindgen with tools such as python's cffi which doesn't understand include directives

Optional text to output at major sections to deter manual editing

Include a comment with the version of cbindgen used to generate the file

An optional name for the root namespace. Only applicable when language="C++"

An optional list of namespaces. Only applicable when language="C++"

The style to use for braces

The preferred length of a line, used for auto breaking function arguments

The amount of spaces in a tab

The language to output bindings for

The style to declare structs, enums and unions in for C

The configuration options for parsing

The configuration options for exporting

The configuration options for functions

The configuration options for structs

The configuration options for enums

The configuration options for constants

Preprocessor defines to use when generating #ifdef's for #[cfg]

Include doc comments from rust as documentation

Methods

impl Config
[src]

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Config
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config