Skip to content

CargoCallbacks does not trigger rerun if the wrapper header changes #2643

Closed
@CrendKing

Description

@CrendKing

Input C/C++ Header

wrapper.h:

const int test = 0;

Bindgen Invocation

bindgen::Builder::default()
    .header("wrapper.h")
    .parse_callbacks(Box::new(bindgen::CargoCallbacks))
    .generate()
    .unwrap()

Actual Results

If I change the test value to 1, the generated binding should update.

Expected Results

No rerun happens at all.

It seems only the headers transitively included by the wrapper.h trigger rerun. Shouldn't it also automatically include the wrapper header?

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