Aside from the other comments, <a href="https:&#x2F;&#x2F;github.com&#x2F;michaelwu&#x2F;rust-bindgen&#x2F;tree&#x2F;sm-hacks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;michaelwu&#x2F;rust-bindgen&#x2F;tree&#x2F;sm-hacks</a> somewhat works for binding to more complicated C++ code.<p>C code, works fine, as always.