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/BUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/rust/hello_lib/BUILD b/examples/rust/hello_lib/BUILD
index 64cc935b27..a075f8b168 100644
--- a/examples/rust/hello_lib/BUILD
+++ b/examples/rust/hello_lib/BUILD
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
-load("/tools/build_rules/rust/rust", "rust_library", "rust_test")
+load("/tools/build_rules/rust/rust", "rust_library", "rust_docs", "rust_test")
rust_library(
name = "hello_lib",
@@ -10,6 +10,11 @@ rust_library(
],
)
+rust_docs(
+ name = "hello_lib_docs",
+ dep = ":hello_lib",
+)
+
rust_test(
name = "greeting",
srcs = ["tests/greeting.rs"],