diff options
author | David Chen <dzc@google.com> | 2015-07-30 11:47:06 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-07-30 15:42:59 +0000 |
commit | e449d50a64f400584abe9439de1a06a6f82de5c1 (patch) | |
tree | b099a77eb4aed74db3e3d32b7c6ac47961d9bf31 /examples/rust/hello_lib/BUILD | |
parent | b4b19bcb0b7c010155b0b3f0aaa38be9dd151195 (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/BUILD | 17 |
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"], +) |