Read type identifier from the item in src_code_gen

Before, for Tag types, we were putting the identifier into the Type instance itself. Since we are adding the concept of IR Graph into the SrcCodeGen, we can actually find the associated Item for each relevant type, and retrieve the identifier from there.

This cl modifies the logic so we do that.

A followup to this CL will refactor how types are created in C++ and how are they represented in Rust, very likely to become enums with values like "user_defined" and "primitive" (like int and pointer).

PiperOrigin-RevId: 412817557
6 files changed
tree: 51ff7ba2ff5f99e999f655e64db18e0595d9bce5
  1. lifetime_annotations/
  2. rs_bindings_from_cc/
  3. CODE_OF_CONDUCT
  4. CONTRIBUTING
  5. LICENSE
  6. 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.