Return both Rust and C++ code from SrcCodeGen

Previously we expected to only generate Rust source code in Rust. Now we
discovered we can quite conveniently also generate C++ code in Rust using the
same infrastructure. This CL changes the FFI interface so we can return both Rust
and C++ code (bundled in Bindings struct) from SrcCodeGen.

PiperOrigin-RevId: 392498729
6 files changed
tree: b792bfd440053d1cd171d7875f59b408b665f6b1
  1. rs_bindings_from_cc/
  2. CODE_OF_CONDUCT
  3. CONTRIBUTING
  4. LICENSE
  5. README.md
README.md

Crubit: C++/Rust Bidirectional Interop Tool

Extremely experimental interop tooling for C++ and Rust.

Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.