forked from Calsign/gazelle_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps2.bzl
26 lines (19 loc) · 853 Bytes
/
deps2.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# go/gazelle
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
# protobuf
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains")
# versions of dependencies
load(":deps_versions.bzl", "versions")
def gazelle_rust_dependencies2():
# go/gazelle
go_rules_dependencies()
if "go_sdk" not in native.existing_rules():
go_register_toolchains(version = versions.GO_VERSION)
gazelle_dependencies()
# protobuf
rules_proto_dependencies()
rules_proto_toolchains()
rust_proto_protobuf_dependencies()
rust_proto_protobuf_register_toolchains()