Zngur: A C++/Rust interop tool

Zngur is a tool that facilitates C++ and Rust interoperability. It enables the use of Rust types, methods, and functions in C++ code seamlessly, allowing for idiomatic Rust API implementation within C++. Notably, Rust is memory-safe and distinguishes between safe and unsafe code using the ‘unsafe’ keyword, while C++ lacks such a feature. Zngur permits the usage of arbitrary Rust types in C++, implementation of Rust traits for C++ classes, and conversion of C++ lambdas into Rust closures. The tool also supports catching Rust panics as C++ exceptions and provides utilities like zngur_dbg for debugging.

https://hkalbasi.github.io/zngur/

To top