Struct bindgen::BindgenOptions [] [src]

pub struct BindgenOptions {
    pub hidden_types: RegexSet,
    pub opaque_types: RegexSet,
    pub whitelisted_types: RegexSet,
    pub whitelisted_functions: RegexSet,
    pub whitelisted_vars: RegexSet,
    pub bitfield_enums: RegexSet,
    pub builtins: bool,
    pub links: Vec<(String, LinkType)>,
    pub emit_ast: bool,
    pub emit_ir: bool,
    pub enable_cxx_namespaces: bool,
    pub disable_name_namespacing: bool,
    pub derive_debug: bool,
    pub unstable_rust: bool,
    pub use_core: bool,
    pub ctypes_prefix: Option<String>,
    pub namespaced_constants: bool,
    pub msvc_mangling: bool,
    pub convert_floats: bool,
    pub raw_lines: Vec<String>,
    pub clang_args: Vec<String>,
    pub input_header: Option<String>,
    pub dummy_uses: Option<String>,
    pub type_chooser: Option<Box<TypeChooser>>,
    pub codegen_config: CodegenConfig,
    pub conservative_inline_namespaces: bool,
}
Deprecated

Configuration options for generated bindings.

Deprecated: use a Builder instead.

Fields

Deprecated

The set of types that have been blacklisted and should not appear anywhere in the generated code.

Deprecated

The set of types that should be treated as opaque structures in the generated code.

Deprecated

The set of types that we should have bindings for in the generated code.

This includes all types transitively reachable from any type in this set. One might think of whitelisted types/vars/functions as GC roots, and the generated Rust code as including everything that gets marked.

Deprecated

Whitelisted functions. See docs for whitelisted_types for more.

Deprecated

Whitelisted variables. See docs for whitelisted_types for more.

Deprecated

The enum patterns to mark an enum as bitfield.

Deprecated

Whether we should generate builtins or not.

Deprecated

The set of libraries we should link in the generated Rust code.

Deprecated

True if we should dump the Clang AST for debugging purposes.

Deprecated

True if we should dump our internal IR for debugging purposes.

Deprecated

True if we should emulate C++ namespaces with Rust modules in the generated bindings.

Deprecated

True if we should avoid mangling names with namespaces.

Deprecated

True if we shold derive Debug trait implementations for C/C++ structures and types.

Deprecated

True if we can use unstable Rust code in the bindings, false if we cannot.

Deprecated

True if we should avoid using libstd to use libcore instead.

Deprecated

An optional prefix for the "raw" types, like c_int, c_void...

Deprecated

True if we should generate constant names that are directly under namespaces.

Deprecated

True if we should use MSVC name mangling rules.

Deprecated

Whether we should convert float types to f32/f64 types.

Deprecated

The set of raw lines to prepend to the generated Rust code.

Deprecated

The set of arguments to pass straight through to Clang.

Deprecated

The input header file.

Deprecated

Generate a dummy C/C++ file that includes the header and has dummy uses of all types defined therein. See the uses module for more.

Deprecated

A user-provided type chooser to allow customizing different kinds of situations.

Deprecated

Which kind of items should we generate? By default, we'll generate all of them.

Deprecated

Whether to treat inline namespaces conservatively.

See the builder method description for more details.

Trait Implementations

impl Debug for BindgenOptions
[src]

Formats the value using the given formatter.

impl Default for BindgenOptions
[src]

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