blob: df84f43e8bdf42003c697709aa59ac3329e6b2ef [file] [log] [blame]
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
load("//common:crubit_wrapper_macros_oss.bzl", "crubit_rust_test")
load("//rs_bindings_from_cc/test:test_bindings.bzl", "crubit_test_cc_library")
package(default_applicable_licenses = ["//:license"])
crubit_test_cc_library(
name = "two",
hdrs = ["two.h"],
)
crubit_test_cc_library(
name = "three",
hdrs = ["three.h"],
)
rust_library(
name = "math",
srcs = ["math.rs"],
cc_deps = [
":three",
":two",
],
proc_macro_deps = [
"//support/cc_import",
],
)
crubit_rust_test(
name = "math_test",
crate = ":math",
deps = [
"//third_party/gtest_rust/googletest",
],
)