Re:Libfive: Solid modeling (CAD) library/tools with Scheme/P...
by iudqnolq on Monday April 26, 2021 @10:45PM
(#26951348)
I'd give cxx a shot. I've only written c bindings but I've heard great things about it.
> This library provides a safe mechanism for calling C++ code from Rust and Rust code from C++. It carves out a regime of commonality where Rust and C++ are semantically very similar and guides the programmer to express their language boundary effectively within this regime. CXX fills in the low level stuff so that you get a safe binding, preventing the pitfalls of doing a foreign function interface over unsafe C-style signatures.
If you're interested in chatting with a random inexperienced student about a month into writing his first Rust bindings I'd enjoy sharing approaches. I'm dzfranklin on the Rust language discord. (If you're not already aware of it the channel #black-magic is great for getting help with unsafe code)
If anyone wants to help that would be appreciated heaps.
[0] https://github.com/rust-lang/rust-bindgen/issues/2035