2 ms·
"take C header files, figure out how the structs and functions compile, and generate the Rust / C# structs and fuction signatures. " I have been playing with i
by maxxxxx 8y ago
"take C header files, figure out how the structs and functions compile, and generate the Rust / C# structs and fuction signatures. "
I have been playing with idea but often you also need to know what the function does with the pointer you pass in. Is it "in", "out" or whatever? With a lot of functions it would be doable but there are quite a few Win32 functions where it's really, really hard to do direct interop from C#. For these cases I find C+/CLI wrappers easier to deal with.