From ab141f8d1035eb30bbb9dc09d89ea6a3ba83cc0f Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 5 Oct 2015 12:21:32 +0000 Subject: [rust] Add rust_bench_test and rust_doc_test rules and improve usability of rust_test rule. * Add rust_bench_test rule to run benchmark tests * Add rust_doc_test rule to run Rust documentation tests. * Enable rust_test and rust_bench_test to depend directly on a rust_library target. * Rename rust_docs rule to rust_doc for consistency. RELNOTES: [rust] Add rust_bench_test and rust_doc_test rules and improve usability of rust_test tule. -- MOS_MIGRATED_REVID=104648497 --- examples/rust/hello_world/BUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/rust/hello_world/BUILD') diff --git a/examples/rust/hello_world/BUILD b/examples/rust/hello_world/BUILD index ccd87f1b93..1f5365675b 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_docs") +load("/tools/build_rules/rust/rust", "rust_binary", "rust_doc") rust_binary( name = "hello_world", @@ -8,7 +8,7 @@ rust_binary( deps = ["//examples/rust/hello_lib"], ) -rust_docs( - name = "hello_world_docs", +rust_doc( + name = "hello_world_doc", dep = ":hello_world", ) -- cgit v1.2.3