FFI: C structs in Rust?


Is it possible to import and use C structs in Rust? I have a struct in Rust which should contain other structs that are written in C. I'm not much experienced with FFI, if there is documentation or an article that can help me understand this, I'd really appreciate that.

Thanks a lot for your time!

You can convert them with bindgen.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.