commit | e7874b5c7f98d1e0354ff7a99b16e4cb149d5f6d | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Fri Sep 30 16:52:28 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 30 16:52:59 2022 -0700 |
tree | eef07bdf46d001755f876a364cb89ba31516dbf5 | |
parent | 5bddf183f530c96660b4678a386e7816b3f6f888 [diff] |
Rename `lib.rs` to `bindings.rs` and minor BUILD cleanup. Among other things, this fixes the following warning: ``` warning: found module declaration for lib.rs --> third_party/crubit/cc_bindings_from_rs/cc_bindings_from_rs.rs:22:1 | 22 | mod lib; | ^^^^^^^^ | = note: `#[warn(special_module_name)]` on by default = note: lib.rs is the root of this crate's library target = help: to refer to it from other targets, use the library's name as the path ``` PiperOrigin-RevId: 478108617
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