#cpp #api-bindings

macro directcpp-macro

Direct call cpp from Rust (proc-macro)

10 releases

0.1.9 Aug 6, 2024
0.1.8 Aug 6, 2024
0.1.7 Jul 3, 2024
0.1.6 Jun 21, 2024
0.1.4 Apr 29, 2024

#323 in FFI


Used in directcpp

MIT/Apache

76KB
2.5K SLoC

Rust 2K SLoC // 0.0% comments C++ 403 SLoC // 0.0% comments

Direct call cpp from Rust!

directcpp is yet another method to interop c++ with rust.

It's designed to be lightweight, efficient, MSVC-friendly, no cpp side code generation, work with outer c++ build tools like visual studio.

If you're looking for a way to work with c++ and rust with Visual Studio, directcpp might be the result.

This is the proc-macro project. Read main README.md for more.

Dependencies

~2.4–4MB
~77K SLoC