diff options
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"], +) |