Debian Codegraph @

.cargo/vendor/cbindgen/tests/depfile/Readme.md

raw
1 This a folder containing tests for `--depfile` parameter.
2 Each test is in a subfolder and defines a minimum CMake project,
3 which uses cbindgen to generate Rust bindings and the `--depfile`
4 parameter to determine when to regenerate.
5 The outer test can the build the project, assert that rebuilding does not regenerate the
6 bindings, and then assert that touching the files involved does trigger rebuilding.
7
8 The test project must contain an `expectations` folder, containing a file `dependencies`.
9 This `dependencies` should list all files that should be listed as dependencies in the generated
10 depfile. The paths should be relative to the project folder (i.e. to the folder containing
11 `expectations`).