Skip to main content

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")]

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

Metadata

Release files for cxx2rs 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cxx2rs 0.3.8
File Size Uploaded
cxx2rs-0.3.8.tar.gz 12.5 kB Details

Release files / cxx2rs-0.3.8.tar.gz

Download URL cxx2rs-0.3.8.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b1dd93c3510edf3e4b54015c2a9670ebc19125ba9ad39a5b4542c6c6e2e0ba61
BLAKE2b-256 checksum
How to use checksums
13c94fd2980561e727fdbf3da6317eba120fdda5d665355083002cd02564ab85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.8 This release

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page