WORKSPACE文件
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
git_repository(
name = "com_google_protobuf",
remote = "https://github.com/protocolbuffers/protobuf.git",
tag = "v3.9.0",
)
http_archive(
name = "com_github_brpc_brpc",
urls = [
"https://github.com/apache/incubator-brpc/archive/1.0.0.tar.gz",
],
strip_prefix = "brpc-1.0.0",
)
http_archive(
name = "com_github_grpc_grpc",
urls = [
"https://github.com/grpc/grpc/archive/v1.56.0.tar.gz",
],
strip_prefix = "grpc-1.56.0",
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_d