aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/rust/hello_lib/BUILD
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2015-07-30 11:47:06 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-07-30 15:42:59 +0000
commite449d50a64f400584abe9439de1a06a6f82de5c1 (patch)
treeb099a77eb4aed74db3e3d32b7c6ac47961d9bf31 /examples/rust/hello_lib/BUILD
parentb4b19bcb0b7c010155b0b3f0aaa38be9dd151195 (diff)
Restore Rust examples and add Rust rule tests that were inadvertently excluded.
-- MOS_MIGRATED_REVID=99464781
Diffstat (limited to 'examples/rust/hello_lib/BUILD')
-rw-r--r--examples/rust/hello_lib/BUILD17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/rust/hello_lib/BUILD b/examples/rust/hello_lib/BUILD
new file mode 100644
index 0000000000..64cc935b27
--- /dev/null
+++ b/examples/rust/hello_lib/BUILD
@@ -0,0 +1,17 @@
+package(default_visibility = ["//visibility:public"])
+
+load("/tools/build_rules/rust/rust", "rust_library", "rust_test")
+
+rust_library(
+ name = "hello_lib",
+ srcs = [
+ "src/greeter.rs",
+ "src/lib.rs",
+ ],
+)
+
+rust_test(
+ name = "greeting",
+ srcs = ["tests/greeting.rs"],
+ deps = [":hello_lib"],
+)