1 Star 0 Fork 0

huahuayu/rules_protobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
WORKSPACE 4.36 KB
一键复制 编辑 原始数据 按行查看 历史
workspace(name = "org_pubref_rules_protobuf")
load("//protobuf:rules.bzl", "github_archive")
# ================================================================
# Go support requires rules_go
# ================================================================
github_archive(
name = "io_bazel_rules_go",
commit = "f676870c5caf8df559a51e7aa005d2ece148a03b", # 0.10.3
org = "bazelbuild",
repo = "rules_go",
sha256 = "d1740b1a75d3c51f1c37e5a42ed032d113bdf1de35c393c609940af491ab6035",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
# ================================================================
# closure js_proto_library support requires rules_closure
# ================================================================
github_archive(
name = "io_bazel_rules_closure",
commit = "21b757480a1e3a67f1a25a8f27a404fc751e1477", # 0.6.0
org = "bazelbuild",
repo = "rules_closure",
sha256 = "84687d2bc01fe2a0b45ec906bee87c5d336767e00d8cc8d40236c8804d5d5ced",
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories(omit_com_google_protobuf=True)
# ================================================================
# csharp_proto_library support requires rules_dotnet (forked)
# ================================================================
github_archive(
name = "io_bazel_rules_dotnet",
commit = "1a6ca96fe05bca83782464453ac4657fb8ed8379",
org = "bazelbuild",
repo = "rules_dotnet",
sha256 = "0f7d7f79bf543fdcce9ffebf422df2f858eae63367869b441d4d1005f279fa1f",
)
load("@io_bazel_rules_dotnet//dotnet:csharp.bzl", "csharp_repositories")
csharp_repositories()
# ================================================================
# node_proto_library support requires rules_node
# ================================================================
github_archive(
name = "org_pubref_rules_node",
# This commit is *not* on master but rather https://github.com/pubref/rules_node/pull/41.
commit = "f990afc34168f81b034e642aa0dcb56320ed3988",
org = "pubref",
repo = "rules_node",
sha256 = "a367add895f201595b618611dcf7bdd7723ffeed88c4dc327e30668d19c9d1e2",
)
load("@org_pubref_rules_node//node:rules.bzl", "node_repositories", "yarn_modules")
node_repositories()
yarn_modules(
name = "yarn_modules",
package_json = "//node:package.json",
)
# ================================================================
# Python GRPC support requires rules_python
# ================================================================
github_archive(
name = "io_bazel_rules_python",
commit = "8b5d0683a7d878b28fffe464779c8a53659fc645",
org = "bazelbuild",
repo = "rules_python",
sha256 = "40499c0a9d55f0c5deb245ed24733da805f05aaf6085cb39027ba486faf1d2e1",
)
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
pip_repositories()
pip_import(
name = "pip_grpcio",
requirements = "//python:requirements.txt",
)
load("@pip_grpcio//:requirements.bzl", pip_grpcio_install = "pip_install")
pip_grpcio_install()
# ================================================================
# Specific Languages Support
# ================================================================
load("//protobuf:rules.bzl", "proto_repositories")
proto_repositories()
load("//cpp:rules.bzl", "cpp_proto_repositories")
cpp_proto_repositories()
load("//csharp:rules.bzl", "csharp_proto_repositories")
csharp_proto_repositories()
load("//java:rules.bzl", "java_proto_repositories", "nano_proto_repositories")
java_proto_repositories(
# Already picking these up from rules_closure
excludes = [
"com_google_code_findbugs_jsr305",
"com_google_errorprone_error_prone_annotations",
],
)
#nano_proto_repositories()
load("//go:rules.bzl", "go_proto_repositories")
go_proto_repositories()
load("//gogo:rules.bzl", "gogo_proto_repositories")
gogo_proto_repositories()
load("//grpc_gateway:rules.bzl", "grpc_gateway_proto_repositories")
grpc_gateway_proto_repositories()
load("//node:rules.bzl", "node_proto_repositories")
node_proto_repositories()
load("//objc:rules.bzl", "objc_proto_repositories")
objc_proto_repositories()
load("//python:rules.bzl", "py_proto_repositories")
py_proto_repositories()
load("//ruby:rules.bzl", "ruby_proto_repositories")
ruby_proto_repositories()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cbhuahuayu/rules_protobuf.git
git@gitee.com:cbhuahuayu/rules_protobuf.git
cbhuahuayu
rules_protobuf
rules_protobuf
master

搜索帮助