Skip to content

Commit 67217c4

Browse files
David Tolnaymeta-codesync[bot]
authored andcommitted
Update tonic 0.10 usages to 0.12
Reviewed By: diliop Differential Revision: D95149187 fbshipit-source-id: e0a3d03ebed7e9b0255e12a5ad25f7b4c9ad10fd
1 parent 70b64b4 commit 67217c4

17 files changed

Lines changed: 27 additions & 116 deletions

File tree

app/buck2_action_metadata_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22

33
oncall("build_infra")
44

5-
rust_protobuf_library_prost_0134(
5+
rust_protobuf_library(
66
name = "buck2_action_metadata_proto",
77
srcs = glob(["src/**/*.rs"]),
88
build_script = "build.rs",

app/buck2_cli_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
33
load("@fbcode_macros//build_defs/lib:oss.bzl", "translate_target")
44

55
oncall("build_infra")
66

7-
rust_protobuf_library_prost_0134(
7+
rust_protobuf_library(
88
name = "buck2_cli_proto",
99
srcs = glob(["src/**/*.rs"]),
1010
build_script = "build.rs",

app/buck2_data/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
33
load("@fbcode_macros//build_defs/lib:oss.bzl", "translate_target")
44

55
oncall("build_infra")
66

7-
rust_protobuf_library_prost_0134(
7+
rust_protobuf_library(
88
name = "buck2_data",
99
srcs = glob(["src/**/*.rs"]),
1010
build_script = "build.rs",

app/buck2_downward_api_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22

33
oncall("build_infra")
44

5-
rust_protobuf_library_prost_0134(
5+
rust_protobuf_library(
66
name = "buck2_downward_api_proto",
77
srcs = glob(["src/**/*.rs"]),
88
build_script = "build.rs",

app/buck2_execute_impl/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ rust_library(
4848
"//buck2/app/buck2_http:buck2_http",
4949
"//buck2/app/buck2_resource_control:buck2_resource_control",
5050
"//buck2/app/buck2_util:buck2_util",
51-
"//buck2/app/buck2_worker_proto:buck2_worker_proto_modern_prost",
51+
"//buck2/app/buck2_worker_proto:buck2_worker_proto",
5252
"//buck2/app/buck2_wrapper_common:buck2_wrapper_common",
5353
"//buck2/dice/dice_futures:dice_futures",
5454
"//buck2/gazebo/dupe:dupe",

app/buck2_forkserver_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode//grpc_fb/codegen:buck_macros.bzl", "grpc_library")
33
load("@fbcode_macros//build_defs/lib:oss.bzl", "translate_target")
44

55
oncall("build_infra")
66

7-
rust_protobuf_library_prost_0134(
7+
rust_protobuf_library(
88
name = "buck2_forkserver_proto",
99
srcs = glob(["src/**/*.rs"]),
1010
build_script = "build.rs",

app/buck2_health_check_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode//grpc_fb/codegen:buck_macros.bzl", "grpc_library")
33
load("@fbcode_macros//build_defs/lib:oss.bzl", "translate_target")
44

55
oncall("build_infra")
66

7-
rust_protobuf_library_prost_0134(
7+
rust_protobuf_library(
88
name = "buck2_health_check_proto",
99
srcs = glob(["src/**/*.rs"]),
1010
build_script = "build.rs",

app/buck2_host_sharing_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
33

44
oncall("build_infra")
55

6-
rust_protobuf_library_prost_0134(
6+
rust_protobuf_library(
77
name = "buck2_host_sharing_proto",
88
srcs = glob(["src/**/*.rs"]),
99
build_script = "build.rs",

app/buck2_install_proto/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library_prost_0134")
1+
load("@fbcode//buck2:proto_defs.bzl", "proto_srcs", "rust_protobuf_library")
22
load("@fbcode//grpc_fb/codegen:buck_macros.bzl", "grpc_library")
33

44
oncall("build_infra")
55

6-
rust_protobuf_library_prost_0134(
6+
rust_protobuf_library(
77
name = "buck2_install_proto",
88
srcs = glob(["src/**/*.rs"]),
99
build_script = "build.rs",

app/buck2_protoc_dev/BUCK

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ rust_library(
88
rustc_flags = [
99
"--cfg=buck2_build",
1010
],
11-
deps = [
12-
"fbsource//third-party/rust:tonic-build-0-10",
13-
],
14-
)
15-
16-
rust_library(
17-
name = "buck2_protoc_dev-tonic-0-12-3",
18-
srcs = glob(["src/**/*.rs"]),
19-
crate = "buck2_protoc_dev",
20-
rustc_flags = [
21-
"--cfg=buck2_build",
22-
],
2311
deps = [
2412
"fbsource//third-party/rust:tonic-build-0-12",
2513
],

0 commit comments

Comments
 (0)