Add hardcoded spaces to Rust output.

Normally, we don't need to worry about spaces as `rustfmt` will fix it all for us. Indeed, any added space would get removed/altered by `rustfmt`, so it would normally be pointless.

`__SPACE__` is for the abnornmal case, inside a macro invocation: `rustfmt` will not touch the `...` inside `foo!(...)`. So this change allows one to produce nicely-formatted macro invocations, which would otherwise include only the strictly necessary spacing:

```
forward_declare!(pub foo = bar)                     --> my_macro!(pub foo=bar)
forward_declare!(pub foo __SPACE__ = __SPACE__ bar) --> my_macro!(pub foo = bar)
```

(In particular, this is exactly the structure used by the forward_declare macro...)

PiperOrigin-RevId: 442817418
2 files changed
tree: f9279c4215af4aac98214ff95dc11050038efba9
  1. cc_template/
  2. common/
  3. lifetime_annotations/
  4. rs_bindings_from_cc/
  5. BUILD
  6. CODE_OF_CONDUCT
  7. CONTRIBUTING
  8. LICENSE
  9. 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.