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

windows-bindgen filtering and flattening don't just do what they say #3245

Open
kennykerr opened this issue Sep 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kennykerr
Copy link
Collaborator

Summary

  • Filtering by namespace doesn't equate to filtering by type if that is something complex like a WinRT class.
  • Flattening a namespace does more than just remove the namespace.

Crate manifest

No response

Crate code

windows_bindgen::bindgen([
        "--in",
        "metadata.winmd",
        "--out",
        "src/bindings.rs",
        "--filter",
        "test_constructors", // TODO: this doesn't work when specifying types directly
        "--config",
        "implement",
        "no-bindgen-comment",
        // "flatten", TODO: this does more than just remove the namespace
    ])
    .unwrap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant