Skip to content

windows-bindgen needs no-deps option where bindings don't depend on other crates #3319

@youyuanwu

Description

@youyuanwu

Suggestion

windows-bindgen should generate string types using windows-strings crate types, and windows-strings should work on linux.

After version 0.58, generated code has "windows_core::PCWSTR" but it is not defined on linux "
cannot find type PCWSTR in crate windows_core".
This is due to change: #3143

Previously I was able to use the generated code with PCWSTR on linux by implementing HeapAlloc etc as work around. And such workaround has been implemented in windows-rs directly: #3004

Please support PCWSTR for windows-bindgen (COM) and linux, or expose the previous behavior that we can use work around. For now, we stick with 0.57 version until this ask is completed in future versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions