commit | a68fdbc7b6c1910f632e3c18d8b52b0a304abf8e | [log] [tgz] |
---|---|---|
author | Devin Jeanpierre <jeanpierreda@google.com> | Fri May 27 04:16:36 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri May 27 04:17:09 2022 -0700 |
tree | ed0baceebd97fbe0d827055afc1772d14f6b18a3 | |
parent | 7b075e3f8fcd88ceeca045eaf4c0a6734ecacfef [diff] |
Implement `ToTokens` for `LifetimeName`, so that formatting doesn't require an extra step. This goes along with earlier changes, where, rather than separately representing the structured vs quoted data, we just use the structured data and quote it as necessary. Lets you keep using the structured data as long as you want, and reduces the (visual) complexity of formatting them. Also, reduces the incidence of panic attacks from me reliving memories of trying to debug print in OCaml. PiperOrigin-RevId: 451360750
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.
$ apt install clang lld bazel $ git clone git@github.com:google/crubit.git $ cd crubit $ bazel build --linkopt=-fuse-ld=/usr/bin/ld.lld //rs_bindings_from_cc:rs_bindings_from_cc_impl
$ git clone https://github.com/llvm/llvm-project $ cd llvm-project $ CC=clang CXX=clang++ cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release $ cmake --build build -j $ # wait... $ cd ../crubit $ PREBUILT_LLVM_PATH=../llvm-project bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl