| """End-to-end tests of `cc_bindings_from_rs`, focusing on use statements.""" |
| |
| load( |
| "@rules_rust//rust:defs.bzl", |
| "rust_library", |
| ) |
| load( |
| "//cc_bindings_from_rs/bazel_support:cc_bindings_from_rust_rule.bzl", |
| "cc_bindings_from_rust", |
| ) |
| load("//common:crubit_wrapper_macros_oss.bzl", "crubit_cc_test") |
| |
| package(default_applicable_licenses = ["//:license"]) |
| |
| rust_library( |
| name = "uses", |
| testonly = 1, |
| srcs = ["uses.rs"], |
| ) |
| |
| cc_bindings_from_rust( |
| name = "uses_cc_api", |
| testonly = 1, |
| crate = ":uses", |
| ) |
| |
| crubit_cc_test( |
| name = "uses_test", |
| srcs = ["uses_test.cc"], |
| deps = [ |
| ":uses_cc_api", |
| "@com_google_googletest//:gtest_main", |
| ], |
| ) |