#cpp #api-bindings

macro directcpp-macro

Direct call cpp from Rust (proc-macro)

5 releases

new 0.1.4 Apr 29, 2024
0.1.3 Apr 25, 2024
0.1.2 Apr 18, 2024
0.1.1 Apr 15, 2024
0.1.0 Apr 15, 2024

#320 in FFI

Download history 187/week @ 2024-04-09 189/week @ 2024-04-16 251/week @ 2024-04-23

627 downloads per month
Used in directcpp

MIT/Apache

72KB
2K 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
~75K SLoC