You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I showed my idl file to @kennykerr and he pointed out that my idl is not winrt and I need a work around.
Quote from kenny:
"Looks like you're not building a WinRT component. While it should in theory work for COM components as well, I haven't yet tested that and may require you to choose a different set of command line options for MIDL. Also MIDL has no ability to create a winmd file for non-WinRT components. I plan to support that natively in Rust (without IDL) and that's what I'm actively working on now, but its not there yet.
There's a tool you can use to do that today (produce a winmd for COM APIs) - but requires some build.rs scripting - until native support arrives. Rafael should be able to help you out if you open an issue.
"
The text was updated successfully, but these errors were encountered:
Is there anything we can just put in a build.rs? That manual code scares me, because if I adopted it then I'd have to maintain it and it looks like a mess.
Hi team. I am from Azure ServiceFabric team and want to wrap our c sdk (idl based) to work well with windows-rs.
I followed https://github.com/kennykerr/component-rs to generate rust code from mdil but got error:
I showed my idl file to @kennykerr and he pointed out that my idl is not winrt and I need a work around.
Quote from kenny:
"Looks like you're not building a WinRT component. While it should in theory work for COM components as well, I haven't yet tested that and may require you to choose a different set of command line options for MIDL. Also MIDL has no ability to create a winmd file for non-WinRT components. I plan to support that natively in Rust (without IDL) and that's what I'm actively working on now, but its not there yet.
There's a tool you can use to do that today (produce a winmd for COM APIs) - but requires some build.rs scripting - until native support arrives. Rafael should be able to help you out if you open an issue.
"
The text was updated successfully, but these errors were encountered: