rustcxx is a tool allowing C++ to be used from a Rust project easily.
It works by allowing snippets of C++ to be included within a Rust function,
and vice-versa.
We gladly accept contributions via GitHub pull requests, as long as the author
has signed the Google Contributor License. Please see
CONTRIBUTING.md for more details.
Disclaimer
This is not an official Google product (experimental or otherwise), it
is just code that happens to be owned by Google.
rustcxx: Using C++ from Rust made easy
rustcxx is a tool allowing C++ to be used from a Rust project easily. It works by allowing snippets of C++ to be included within a Rust function, and vice-versa.
Example
See the provided example for more details.
Usage
rustcxx requires a nightly version of the Rust compiler.
Add to your
Cargo.toml:and create a
build.rsfile containing the following:Authors
The main author is Paul Liétar.
Contributions
We gladly accept contributions via GitHub pull requests, as long as the author has signed the Google Contributor License. Please see CONTRIBUTING.md for more details.
Disclaimer
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.