aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2015-11-24 17:01:26 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-11-25 10:00:18 +0000
commitd8589319b7d455d6b24ef16117c7cbcb85aa0ec4 (patch)
treed2a2b426808aa6abd3c0ab10802c9e2685ae2671 /examples
parentc6ed6136c563f9836670ff740388e7b6fcdf8c83 (diff)
[rust] Fix bugs in Rust test rules.
* Fix conflicting .deps directory creation by rust_test rule * Fix dependency symlinking in generated rust_doc_test scripts Fixes #572 TESTED: bazel test //examples/rust/... -- MOS_MIGRATED_REVID=108617330
Diffstat (limited to 'examples')
-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 1f5365675b..71061255cd 100644
--- a/examples/rust/hello_world/BUILD
+++ b/examples/rust/hello_world/BUILD
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
-load("/tools/build_rules/rust/rust", "rust_binary", "rust_doc")
+load("/tools/build_rules/rust/rust", "rust_binary", "rust_doc", "rust_doc_test")
rust_binary(
name = "hello_world",
@@ -12,3 +12,8 @@ rust_doc(
name = "hello_world_doc",
dep = ":hello_world",
)
+
+rust_doc_test(
+ name = "hello_world_doc_test",
+ dep = ":hello_world",
+)