commit | 4c19ad934e8094a7dddeebde4eebcd1bc9215ac5 | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Fri Dec 16 15:23:14 2022 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Dec 16 15:23:53 2022 -0800 |
tree | b965098715f2c7b8cc10aa174d5c9a5dcc217de0 | |
parent | df363ee6c102ebf1621b2a3623512d7cae26e02e [diff] |
Tweaking test comments and usage of `.expect...`. Based on earlier code review feedback, I am trying to ensure that all tests (at least the ones touched during development of `cc_bindings_from_rs`) consistently: * Use proper doc comments (e.g. `/// ...` instead of `// ...`) * Use `.unwrap()` and `.unwrap_err()` unless the message passed to `.expect(...)` adds any signigicant information / value. PiperOrigin-RevId: 495973452
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 -DCMAKE_INSTALL_PREFIX=install $ cmake --build build -j $ # wait... $ cmake --install build $ cd ../crubit $ LLVM_INSTALL_PATH=../llvm-project/install bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl