Import decls in LinkageSpecDecl

We don't need an explicit Item for this decl, so in this CL we're changing
importer.cc to iterate decls inside LinkageSpecDecl right away.

PiperOrigin-RevId: 450869812
3 files changed
tree: 97e2a85858d309c1eb33bcf520d59e182a32ca91
  1. .bazelci/
  2. bazel/
  3. cc_template/
  4. common/
  5. docs/
  6. lifetime_annotations/
  7. migrator/
  8. rs_bindings_from_cc/
  9. .bazelrc
  10. .gitignore
  11. BUILD
  12. Cargo.Bazel.lock
  13. CODE_OF_CONDUCT
  14. CONTRIBUTING
  15. LICENSE
  16. README.md
  17. WORKSPACE
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.

Building Crubit

$ 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

Using a prebuilt LLVM tree

$ 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