News for hackers. Stuff that matters.
Re:The Dark Arts of Advanced and Unsafe Rust Programming by maxxxxx on Friday August 24, 2018 @12:53PM (#17836108)
"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.

There are no comments on this comment yet.