manuels / Cxx2rs
Licence: gpl-2.0
A rust-binding generator for C files
Stars: ✭ 51
Programming Languages
python
139335 projects - #7 most used programming language
cxx2rs
A rust-binding generator for C files
Installation:
::
pip install cxx2rs
Use it like this:
::
cxx2rs glib-2.0 /usr/include/glib-2.0/glib/gmain.h `pkg-config --cflags-only-I glib-2.0` > gmain.rs
^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
| | | |
| | compiler args (optional) rust include file
| C include file
library name (rust's #[link(name="glib-2.0")]
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].