-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathBUILD
More file actions
60 lines (52 loc) · 1.34 KB
/
BUILD
File metadata and controls
60 lines (52 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""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(
"//cc_bindings_from_rs/test/golden:golden_test.bzl",
"golden_test",
)
load("//common:crubit_wrapper_macros_oss.bzl", "crubit_cc_test")
package(default_applicable_licenses = ["//:license"])
rust_library(
name = "transitive",
testonly = 1,
srcs = ["transitive.rs"],
)
rust_library(
name = "direct",
testonly = 1,
srcs = ["direct.rs"],
deps = [":transitive"],
)
rust_library(
name = "transitive_reexports",
testonly = 1,
srcs = ["transitive_reexports.rs"],
deps = [":direct"],
)
cc_bindings_from_rust(
name = "transitive_reexports_cc_api",
testonly = 1,
crate = ":transitive_reexports",
)
crubit_cc_test(
name = "transitive_reexports_test",
srcs = ["transitive_reexports_test.cc"],
deps = [
":transitive_reexports_cc_api",
"//testing/base/public:gunit_main",
],
)
golden_test(
name = "transitive_reexports_golden_test",
basename = "transitive_reexports",
golden_h = "transitive_reexports_cc_api.h",
golden_rs = "transitive_reexports_cc_api_impl.rs",
rust_library = "transitive_reexports",
)