aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/rust/hello_world/BUILD
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2015-09-24 09:24:24 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-09-24 14:22:00 +0000
commit4eb82ec1fe39eff42aa5b1b4246fd941183abe6a (patch)
treedcfff8870a7ebc87e6d6cde3dabace93640b825a /examples/rust/hello_world/BUILD
parentd6f6b7dac79d122ba81d7e2b0f53feac7b225f1d (diff)
Add rust_docs rule
Additional updates to Rust rules: * Consolidate BUILD files for Rust distribution. * Prevent rust_binary from depending directly on cc_library. * Update Rust version to 1.3.0 RELNOTES: [rust] Add rust_docs rule for generating rustdoc. -- MOS_MIGRATED_REVID=103827592
Diffstat (limited to 'examples/rust/hello_world/BUILD')
-rw-r--r--examples/rust/hello_world/BUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/rust/hello_world/BUILD b/examples/rust/hello_world/BUILD
index e774dcc835..ccd87f1b93 100644
--- a/examples/rust/hello_world/BUILD
+++ b/examples/rust/hello_world/BUILD
@@ -1,9 +1,14 @@
package(default_visibility = ["//visibility:public"])
-load("/tools/build_rules/rust/rust", "rust_binary")
+load("/tools/build_rules/rust/rust", "rust_binary", "rust_docs")
rust_binary(
name = "hello_world",
srcs = ["src/main.rs"],
deps = ["//examples/rust/hello_lib"],
)
+
+rust_docs(
+ name = "hello_world_docs",
+ dep = ":hello_world",
+)