diff options
author | David Chen <dzc@google.com> | 2015-09-24 09:24:24 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2015-09-24 14:22:00 +0000 |
commit | 4eb82ec1fe39eff42aa5b1b4246fd941183abe6a (patch) | |
tree | dcfff8870a7ebc87e6d6cde3dabace93640b825a /examples/rust/hello_lib/BUILD | |
parent | d6f6b7dac79d122ba81d7e2b0f53feac7b225f1d (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_lib/BUILD')
-rw-r--r-- | examples/rust/hello_lib/BUILD | 7 |
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"], |