forked from kythe/kythe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
135 lines (114 loc) · 3.43 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
workspace(name = "io_kythe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//:version.bzl", "MAX_VERSION", "MIN_VERSION", "check_version")
# Check that the user has a version between our minimum supported version of
# Bazel and our maximum supported version of Bazel.
check_version(MIN_VERSION, MAX_VERSION)
load("//:setup.bzl", "kythe_rule_repositories")
kythe_rule_repositories()
# gazelle:repository_macro external.bzl%_go_dependencies
load("//:external.bzl", "kythe_dependencies")
kythe_dependencies()
load("//tools/build_rules/external_tools:external_tools_configure.bzl", "external_tools_configure")
external_tools_configure()
load("@npm//@bazel/labs:package.bzl", "npm_bazel_labs_dependencies")
npm_bazel_labs_dependencies()
load("@maven//:compat.bzl", "compat_repositories")
compat_repositories()
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load(
"@bazelruby_rules_ruby//ruby:defs.bzl",
"ruby_bundle",
)
ruby_bundle(
name = "website_bundle",
bundler_version = "2.1.4",
gemfile = "//kythe/web/site:Gemfile",
gemfile_lock = "//kythe/web/site:Gemfile.lock",
)
load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository", "render_config")
# Run `CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index` after updating
crates_repository(
name = "crate_index",
cargo_lockfile = "//:Cargo.Bazel.lock",
lockfile = "//:cargo-bazel-lock.json",
packages = {
"anyhow": crate.spec(
version = "1.0.58",
),
"base64": crate.spec(
version = "0.13.0",
),
"clap": crate.spec(
version = "2.34.0",
),
"colored": crate.spec(
version = "2.0.0",
),
"glob": crate.spec(
version = "0.3.0",
),
"hex": crate.spec(
version = "0.4.3",
),
"lazy_static": crate.spec(
version = "1.4.0",
),
"quick-error": crate.spec(
version = "2.0.1",
),
"path-clean": crate.spec(
version = "0.1.0",
),
"rayon": crate.spec(
version = "1.5.3",
),
"regex": crate.spec(
version = "1.5.6",
),
"rls-analysis": crate.spec(
version = "0.18.3",
),
"rls-data": crate.spec(
version = "0.19.1",
),
"serde": crate.spec(
version = "1.0.137",
),
"serde_json": crate.spec(
version = "1.0.64",
),
"sha2": crate.spec(
version = "0.10.2",
),
"tempdir": crate.spec(
version = "0.3.7",
),
"zip": crate.spec(
version = "0.5.11",
),
# Dev dependency for fuchsia extractor
"serial_test": crate.spec(
version = "0.6.0",
),
# Dependencies for our Rust protobuf toolchain
"protobuf": crate.spec(
features = ["with-bytes"],
version = "=2.27.1",
),
"protobuf-codegen": crate.spec(
version = "=2.27.1",
),
},
render_config = render_config(
default_package_name = "",
),
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()
# Register our Rust protobuf toolchain from the BUILD file
register_toolchains(
":rust_proto_toolchain",
)