Disclaimer: This project is experimental, under heavy development, and should be used yet.
:rs_bindings_from_cc
parses C++ headers and generates:
For convenience, :test_wrapper
is a shell script that passes all Clang command line flags from the current Blaze C++ toolchain:
bazel run //rs_bindings_from_cc:test_wrapper -- --public_headers=hello_world.h
or:
bazel build //rs_bindings_from_cc:test_wrapper bazel-bin/rs_bindings_from_cc/test_wrapper --public_headers=hello_world.h
Write unit tests in the language of the code they cover, and put them next to (in the same package as) the code they cover.
Put integration tests into test
package as follows:
sh_test
s.rust_test
or cc_test
on top in subpackages of test
.rs_api_impl.cc
file has a specific symbol defined) as small projects with a sh_test
on top.