Skip to content

Add parse extra bindings to builder #644

@philipp-kaiser

Description

@philipp-kaiser

Parse -> extra_bindings is available under cbindgen.toml, but missing in the Builder.

I added a pull request:

#[allow(unused)]
pub fn with_parse_extra_bindings<S: AsRef<str>>(mut self, extra_bindings: &[S]) -> Builder {
    self.config.parse.extra_bindings = extra_bindings
        .iter()
        .map(|x| String::from(x.as_ref()))
        .collect();
    self
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions