cxx icon indicating copy to clipboard operation
cxx copied to clipboard

Comparison with Zngur

Open akguptakgp opened this issue 3 months ago • 2 comments

Hi Team,

We are looking to use this interop library in our c++ code. But it looks like https://github.com/HKalbasi/zngur also provides similar functionality. What are the core considerations one should make while choosing one?

Thanks, Ankit

akguptakgp avatar Oct 10 '25 09:10 akguptakgp

Hey, author of Zngur here.

I will try to give you an unbiased summary: CXX is more mature and stable, and is more widely used. Zngur has more features, specially for using Rust in C++ direction, and is more willing to add features (potentially via breaking changes). There are also some style differences, e.g. CXX uses a proc macro in Rust code but Zngur uses a separate file for IDL.

You can find a (more biased) comparison with CXX and other tools at Zngur docs: https://hkalbasi.github.io/zngur/how_it_compares.html

HKalbasi avatar Oct 10 '25 23:10 HKalbasi

Thanks a lot for the detailed summary, @HKalbasi — that’s very helpful!

akguptakgp avatar Oct 11 '25 07:10 akguptakgp