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 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 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

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 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]

[src]

[src]

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Config
[src]

[src]

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

Auto Trait Implementations

impl Send for Config

impl Sync for Config