Suggestion
The documentation in docs/crates/windows-bindgen.md sufficiently covers the leaf-application case: add a build script that runs code generation and surface the generated artifacts.
That pattern also works for crate authors, so long as --out is directed toward %OUT_DIR%.
What the documentation does not cover is the case where a crate author wants the generated code to be part of the published crate itself, while still keeping code generation in situ during development.
Could the documentation be updated to include this use case?
Suggestion
The documentation in docs/crates/windows-bindgen.md sufficiently covers the leaf-application case: add a build script that runs code generation and surface the generated artifacts.
That pattern also works for crate authors, so long as
--outis directed toward%OUT_DIR%.What the documentation does not cover is the case where a crate author wants the generated code to be part of the published crate itself, while still keeping code generation in situ during development.
Could the documentation be updated to include this use case?