News for hackers. Stuff that matters.
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.

https://cxx.rs/

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)

There are no comments on this comment yet.