#cpp #api-bindings

macro directcpp-macro

Direct call cpp from Rust (proc-macro)

5 releases

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

#117 in #cpp

Download history 357/week @ 2024-04-13 127/week @ 2024-04-20 189/week @ 2024-04-27 6/week @ 2024-05-04

359 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