Lines Matching refs:to

1 # The language to output bindings in
14 # An optional string of text to output at the beginning of the generated file
19 # An optional string of text to output at the end of the generated file
21 # trailer = "/* Text to put at the end of the generated file */"
23 # An optional name to use as an include guard
30 # An optional string of text to output between major sections of the generated
36 # Whether to include a comment with the version of cbindgen used to generate the file
40 # An optional namespace to output around the generated bindings
44 # An optional list of namespaces to output around the generated bindings
48 # An optional list of namespaces to declare as using with "using namespace"
52 # A list of sys headers to #include (with angle brackets)
57 # A list of headers to #include (with quotes)
62 # imports are included by default because our generated headers tend to require
72 # Whether to make a C header C++ compatible.
90 # A list of lines to add verbatim after the includes block
97 # The style to use for curly braces
104 # The desired length of a line to use when formatting lines
108 # The amount of spaces to indent by
141 # When generating a C header, the kind of declaration style to use for structs
156 # A list of substitutions for converting cfg's to ifdefs. cfgs which aren't
172 # A list of additional items to always include in the generated bindings if they're
173 # found but otherwise don't appear to be used by the public API.
178 # A list of items to not include in the generated bindings
183 # A prefix to add before the name of every item
222 # Table of name conversions to apply to item names (lhs becomes rhs)
227 # Table of things to prepend to the body of any struct, union, or enum that has the
228 # given name. This can be used to add things like methods which don't change ABI,
236 # Table of things to append to the body of any struct, union, or enum that has the
237 # given name. This can be used to add things like methods which don't change ABI.
259 # be unsafe for C callers to use a incorrectly laid-out union.
265 # `#define`d as `ALIGNED(n)` in `header` which translates to
270 # could be unsafe for C callers to use a incorrectly-aligned union.
276 # An optional prefix to put before every function declaration
281 # An optional postfix to put after any function declaration
285 # How to format function arguments
310 # An optional string that, if present, will be used to generate Swift function
317 # A rule to use to rename function argument names. The renaming assumes the input
346 # A rule to use to rename struct field names. The renaming assumes the input is
383 # Whether to derive a simple constructor that takes a value for every field.
387 # Whether to derive an operator== for all structs
391 # Whether to derive an operator!= for all structs
395 # Whether to derive an operator< for all structs
399 # Whether to derive an operator<= for all structs
403 # Whether to derive an operator> for all structs
407 # Whether to derive an operator>= for all structs
416 # A rule to use to rename enum variants, and the names of any fields those
419 # for how this applies to fields. Renaming of the variant assumes that the input
439 # Whether an extra "sentinel" enum variant should be added to all generated enums.
452 # Whether to emit enums using "enum class" when targeting C++.
456 # Whether to generate static `::MyVariant(..)` constructors and `bool IsMyVariant()`
462 # Whether to generate `const MyVariant& AsMyVariant() const` methods for enums with fields.
466 # Whether to generate `MyVariant& AsMyVariant()` methods for enums with fields
470 # The name of the macro/function to use for asserting `IsMyVariant()` in the body of
473 # default: "assert" (but also causes `<cassert>` to be included by default)
482 # Note that this refers to the *output* type. That means this will not apply to an enum
490 # destructors. This isn't necessary for structs because C++ has rules to
510 # for this to be set to true.
516 # This allows the auto-generated constructor functions to compile, if there are
563 # Whether to parse dependent crates and include their types in the output
567 # A white list of crate names that are allowed to be parsed. If this is defined,
573 # A black list of crate names that are not allowed to be parsed.
577 # Whether to use a new temporary target directory when running `rustc -Zunpretty=expanded`.
591 # parsing to expand any macros. Note that if a crate is named here, it
620 # An optional string to decorate all pointers that are
621 # required to be non null. Nullability is inferred from the Rust type: `&T`,
625 # Options specific to Cython bindings.