4 ms·
I started working on some Rust bindings for this but I'm currently stuck here[0] with some bindgen issue. If anyone wants to help that would be appreciated hea
by virtualritz 6y ago
I started working on some Rust bindings for this but I'm currently stuck here[0] with some bindgen issue.
If anyone wants to help that would be appreciated heaps.
[0] https://github.com/rust-lang/rust-bindgen/issues/2035 https://github.com/rust-lang/rust-bindgen/issues/2035
- iudqnolq 6y agoI'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/ 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)