Skip to content

Add optional depfile output #815

@jschwe

Description

@jschwe

Hi,

I'm working on integrating cbindgen into a foreign build system (CMake), and it would be great if cbindgen could output a depfile listing the input source files, so my build system knows when to rerun cbindgen for a given crate.
I would also be willing to work on a PR for this feature, if the chances are good for this feature request to be accepted.

Edit: the required information seems to already be saved in bindgen::builder, so outputting this to a depfile should be a small change.

Edit 2: bindgen::Parser.cache_src seems to contain the remaining filepaths.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions