Add DeclId to items

Since our IR goes through the JSON
serialization/deserialization at the moment, we need a way to restore graph
edges that don't follow the JSON tree structure (for example between types and
records). We will use DeclId for this.

We put decl_id on RsType and CcType and not onto the MappedType because we expect that those 2 types can reference different Decls later on (for example if we decide to map C++ Status onto Rust Result).

PiperOrigin-RevId: 409359971
10 files changed
tree: c91bbacaf07d789cc32cdc5232e4c03ff2473c10
  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.