Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 1 | load("@rules_rust//proto:proto.bzl", "rust_proto_library") |
| 2 | load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library") |
| 3 | |
| 4 | package(default_visibility = ["//proto:__subpackages__"]) |
| 5 | |
| 6 | rust_proto_library( |
| 7 | name = "common_proto_rust", |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 8 | tags = ["manual"], |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 9 | deps = ["//proto:common"], |
| 10 | ) |
| 11 | |
| 12 | rust_library( |
| 13 | name = "common_lib", |
| 14 | srcs = ["lib.rs"], |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 15 | tags = ["manual"], |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 16 | deps = [":common_proto_rust"], |
| 17 | ) |
| 18 | |
| 19 | rust_binary( |
| 20 | name = "common_bin", |
| 21 | srcs = ["main.rs"], |
Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 22 | tags = ["manual"], |
Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame] | 23 | deps = [ |
| 24 | ":common_lib", |
| 25 | ":common_proto_rust", |
| 26 | ], |
| 27 | ) |