Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: How do you interop between Rust and C++?
2 points by _448 on April 3, 2023 | hide | past | favorite | 2 comments
How do you interop Rust code with third-party C++ libraries and source code? What are the challenges, and how to mitigate them?



You might find this article helpful from my colleague Tobias: https://slint-ui.com/blog/rust-and-cpp.html


I write plain and simple C and assembly, does work with the rust/c++ tantrums of the other devs. Those are very egoistical as the other way around is not true.

It comes down to binary interface (~ABI), and you better keep it stupid and simple. It means the c++ or rust devs must care to design and implement an ABI level interface.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: