From d8589319b7d455d6b24ef16117c7cbcb85aa0ec4 Mon Sep 17 00:00:00 2001 From: David Chen Date: Tue, 24 Nov 2015 17:01:26 +0000 Subject: [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 --- examples/rust/hello_world/BUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'examples') 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", +) -- cgit v1.2.3