|
1 |
| -load("@rules_proto//proto:defs.bzl", "proto_library") |
2 |
| -load("@io_bazel_rules_rust//proto:proto.bzl", "rust_proto_library") |
3 |
| -load("@io_bazel_rules_rust//proto:toolchain.bzl", "PROTO_COMPILE_DEPS", "rust_proto_toolchain") |
| 1 | +# load("@rules_proto//proto:defs.bzl", "proto_library") |
| 2 | +# load("@io_bazel_rules_rust//proto:proto.bzl", "rust_proto_library") |
| 3 | +# load("@io_bazel_rules_rust//proto:toolchain.bzl", "PROTO_COMPILE_DEPS", "rust_proto_toolchain") |
| 4 | +load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library", "rust_binary") |
4 | 5 |
|
5 |
| -rust_proto_toolchain(name = "default-proto-toolchain-impl") |
6 |
| - |
7 |
| -toolchain( |
8 |
| - name = "default-proto-toolchain", |
9 |
| - toolchain = ":default-proto-toolchain-impl", |
10 |
| - toolchain_type = "@io_bazel_rules_rust//proto:toolchain", |
| 6 | +rust_library( |
| 7 | + name = "rustc_worker", |
| 8 | + srcs = [ |
| 9 | + "src/lib.rs", |
| 10 | + "src/worker_protocol.rs", |
| 11 | + ], |
| 12 | + deps = [ |
| 13 | + "@io_bazel_rules_rust//proto/raze:protobuf", |
| 14 | + ], |
11 | 15 | )
|
12 | 16 |
|
13 |
| -proto_library( |
14 |
| - name = "worker_protocol_proto", |
15 |
| - srcs = ["src/worker_protocol.proto"], |
| 17 | +rust_binary( |
| 18 | + name = "rustc-worker", |
| 19 | + srcs = ["src/main.rs"], |
| 20 | + deps = [ |
| 21 | + ":rustc_worker", |
| 22 | + "@io_bazel_rules_rust//proto/raze:protobuf", |
| 23 | + ], |
16 | 24 | )
|
17 | 25 |
|
18 |
| -rust_proto_library( |
19 |
| - name = "worker_protocol", |
20 |
| - deps = [":worker_protocol_proto"], |
21 |
| -) |
| 26 | +# rust_proto_toolchain(name = "default-proto-toolchain-impl") |
| 27 | +# |
| 28 | +# toolchain( |
| 29 | +# name = "default-proto-toolchain", |
| 30 | +# toolchain = ":default-proto-toolchain-impl", |
| 31 | +# toolchain_type = "@io_bazel_rules_rust//proto:toolchain", |
| 32 | +# ) |
| 33 | +# |
| 34 | +# proto_library( |
| 35 | +# name = "worker_protocol_proto", |
| 36 | +# srcs = ["src/worker_protocol.proto"], |
| 37 | +# ) |
| 38 | +# |
| 39 | +# rust_proto_library( |
| 40 | +# name = "worker_protocol", |
| 41 | +# deps = [":worker_protocol_proto"], |
| 42 | +# ) |
0 commit comments