Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --depfile option #820

Merged
merged 2 commits into from
May 29, 2023
Merged

Add --depfile option #820

merged 2 commits into from
May 29, 2023

Commits on May 29, 2023

  1. Improve cbindgen detection in tests

    Since our MSRV is now Rust 1.54, we can rely on cargo setting `CARGO_BIN_EXE_cbindgen`
    to the cbindgen path in integration tests.
    This is more reliable than guessing the path, since cargo knows where it placed the bin.
    jschwe committed May 29, 2023
    Configuration menu
    Copy the full SHA
    c613aff View commit details
    Browse the repository at this point in the history
  2. Add --depfile option

    Add an option to output a depfile for outside build-systems to learn
    the source file dependencies of the bindings.
    This can be used by 3rd party build system integrations to only rerun
    bindgen when necessary.
    
    Testing is done via CMake integration tests, since CMake
    is a 3rd party buildsystem which supports depfiles.
    jschwe committed May 29, 2023
    Configuration menu
    Copy the full SHA
    89c4378 View commit details
    Browse the repository at this point in the history