language = "C" [export] include = ["PinyinTranslator"] item_types = ["enums", "structs", "opaque", "functions"] [fn] sort_by = "Name" [struct] derive_constructor = true [const] # Whether a generated constant can be a static const in C++ mode. I have no # idea why you would turn this off. # # default: true allow_static_const = true # Whether a generated constant can be constexpr in C++ mode. # # default: true allow_constexpr = false # This rule specifies the order in which constants will be sorted. # # "Name": sort by the name of the constant # "None": keep order in which the constants have been parsed # # default: "None" sort_by = "Name" [macro_expansion] # Whether bindings should be generated for instances of the bitflags! macro. # default: false bitflags = true [parse] # Whether to parse dependent crates and include their types in the output # default: false # parse_deps = true # A black list of crate names that are not allowed to be parsed. # default: [] exclude = ["libc"] [parse.expand] # When `all_features` is disabled and this is also disabled, use the # `--no-default-features` option when expanding. # # default: true default_features = true # A list of feature names that should be used when running `cargo expand`. This # combines with `default_features` like in your `Cargo.toml`. Note that the features # listed here are features for the current crate being built, *not* the crates # being expanded. The crate's `Cargo.toml` must take care of enabling the # appropriate features in its dependencies # # default: [] features = ["cbindgen"] [ptr] # An optional string to decorate all pointers that are # required to be non null. Nullability is inferred from the Rust type: `&T`, # `&mut T` and `NonNull` all require a valid pointer value. non_null_attribute = "_Nonnull" # Options specific to Cython bindings.