-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
113 lines (67 loc) · 2.68 KB
/
WORKSPACE
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
workspace(name = "fuzz")
## Workspace dependencies & toolchains.
load("//:versions.bzl", "GO_VERSION", "RUST_EDITION")
load("//:workspace.bzl", "workspace_dependencies")
workspace_dependencies()
register_toolchains("//toolchains/cc:all")
## Fuzzing dependencies.
load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies")
rules_fuzzing_dependencies()
load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init")
rules_fuzzing_init()
load("@fuzzing_py_deps//:requirements.bzl", "install_deps")
install_deps()
## Go dependencies & toolchain.
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("//:package.bzl", "deps", "go_deps")
go_rules_dependencies()
go_register_toolchains(version = GO_VERSION)
# gazelle:repository_macro package.bzl%go_deps
go_deps()
## Protobuf dependencies.
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
## Gazelle dependencies.
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
# gazelle:repo bazel_gazelle
gazelle_dependencies()
# Rust dependencies.
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
rules_rust_dependencies()
rust_register_toolchains(edition = RUST_EDITION)
crate_universe_dependencies(bootstrap = True)
rust_analyzer_dependencies()
load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository")
crates_repository(
name = "crate_index",
cargo_lockfile = "//:Cargo.lock",
lockfile = "//:Cargo.bazel.lock",
packages = {
"clap": crate.spec(
features = ["derive"],
version = "4.1.6",
),
},
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()
load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
rust_proto_repositories()
load("@rules_rust//proto:transitive_repositories.bzl", "rust_proto_transitive_repositories")
rust_proto_transitive_repositories()
load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains")
# TODO: Use Clang from this repo!
rust_bindgen_dependencies()
rust_bindgen_register_toolchains()
## Skylib dependencies.
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
## C/C++ dependencies (foreign toolchains).
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies(
register_preinstalled_tools = False,
)
## C/C++ dependencies (external).
deps()