aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/rust/hello_lib/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rust/hello_lib/BUILD')
-rw-r--r--examples/rust/hello_lib/BUILD26
1 files changed, 21 insertions, 5 deletions
diff --git a/examples/rust/hello_lib/BUILD b/examples/rust/hello_lib/BUILD
index a075f8b168..90941e6a42 100644
--- a/examples/rust/hello_lib/BUILD
+++ b/examples/rust/hello_lib/BUILD
@@ -1,6 +1,12 @@
package(default_visibility = ["//visibility:public"])
-load("/tools/build_rules/rust/rust", "rust_library", "rust_docs", "rust_test")
+load(
+ "/tools/build_rules/rust/rust",
+ "rust_library",
+ "rust_test",
+ "rust_doc",
+ "rust_doc_test",
+)
rust_library(
name = "hello_lib",
@@ -10,13 +16,23 @@ rust_library(
],
)
-rust_docs(
- name = "hello_lib_docs",
- dep = ":hello_lib",
+rust_test(
+ name = "hello_lib_test",
+ deps = [":hello_lib"],
)
rust_test(
- name = "greeting",
+ name = "greeting_test",
srcs = ["tests/greeting.rs"],
deps = [":hello_lib"],
)
+
+rust_doc(
+ name = "hello_lib_doc",
+ dep = ":hello_lib",
+)
+
+rust_doc_test(
+ name = "hello_lib_doc_test",
+ dep = ":hello_lib",
+)