commit | 1165a1f2d3e8832c71c916d3969df1ad3eeb2eef | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Wed Jan 18 15:10:41 2023 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Jan 18 15:11:33 2023 -0800 |
tree | f970ccdb5ee17821238d6e4cbb4bef80b18012f4 | |
parent | c7035e41a0552610423cca7dc2bbc7c1b238a3b7 [diff] |
Change `rstd::Char` into a `class`. Before this CL, `rstd::Char` was a type alias for `std::uint32_t`. After this CL `rstd::Char` is a separate `class` (that privately wraps `std::uint32_t`). This change is a step toward a follow-up CL that will start rejecting invalid bit patterns in constructors of `rstd::Char`. PiperOrigin-RevId: 502991306
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