Move crate name evaluation to `RsTypeKind`-creation time.

This makes the `RsTypeKind` completely-represent the type: it does not need any supplementary information from the IR in order to decide what it looks like when written to a Rust token stream.

I think that this is the correct choice from a layering perspective, as it means that we don't need to look "backwards" to earlier layers.

(And, as a self-contained representation, this also means it can straight up implement ToTokens. In other words, where we currently use token streams for types, we can change this to exclusively use structured data in the form of the `RsTypeKind`. I'm doing this in a followup CL.)

PiperOrigin-RevId: 439624523
1 file changed
tree: 4405bd288e2a4f312f3f179c14b87a49a3de49ae
  1. lifetime_annotations/
  2. rs_bindings_from_cc/
  3. BUILD
  4. CODE_OF_CONDUCT
  5. CONTRIBUTING
  6. LICENSE
  7. 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.