Skip to main content

A rust-binding generator for C/C++ files

Project description

cxx2rs

A rust-binding generator for C/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/C++ include file
          library name (rust's #[link(name="glib-2.0")]

Changelog

0.3 (18/04/2015)

  • Use bitflags for C enums

0.2 (22/02/2015)

  • Fix packaging

0.1 (22/02/2015)

  • Initial version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cxx2rs-0.3.4.tar.gz (12.2 kB view details)

Uploaded Source

File details

Details for the file cxx2rs-0.3.4.tar.gz.

File metadata

  • Download URL: cxx2rs-0.3.4.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cxx2rs-0.3.4.tar.gz
Algorithm Hash digest
SHA256 ab1be0bb45cc4e1354385218ab11243ab740dbbacff3d945f042b2cce5b053d3
MD5 58347435a1be625bfaf70f382bfd4f6a
BLAKE2b-256 47de5f53c1bebd569bbc421a87113e79f59b42f058e6f4f6d6e7912b5c3159d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page