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

Specify input .winmd files in windows-bindgen #1406

Closed
Alovchin91 opened this issue Jan 1, 2022 · 1 comment · Fixed by #1777
Closed

Specify input .winmd files in windows-bindgen #1406

Alovchin91 opened this issue Jan 1, 2022 · 1 comment · Fixed by #1777
Labels
enhancement New feature or request

Comments

@Alovchin91
Copy link
Contributor

Alovchin91 commented Jan 1, 2022

Motivation

Currently windows-bindgen crate seems to always look for .winmd files in .windows subdirectory. There should be a way to specify input files/directories.

Drawbacks

The need to specify input path, or a more complex logic selecting defaults

Rationale and alternatives

When generating a .winmd file (see WinRT component sample), I would like to put it into cargo’s $OUT_DIR and then generate a projection from it.

Additional context

No response

@Alovchin91 Alovchin91 added the enhancement New feature or request label Jan 1, 2022
@kennykerr
Copy link
Collaborator

Yes, the underlying reader used by the bindgen crate is shared by the older gen crate. Once I've finally removed the gen crate this should be simpler and I expect the bindgen crate simply to rely on procedural input to declare winmd files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants