-
Notifications
You must be signed in to change notification settings - Fork 110
/
MODULE.bazel
102 lines (91 loc) · 4.64 KB
/
MODULE.bazel
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
module(
name = "nativelink",
version = "0.5.3",
compatibility_level = 0,
)
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_python", version = "0.36.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
# TODO(aaronmondal): Fix or remove legacy container pipelines so that they
# run rootless.
ignore_root_user_error = True,
python_version = "3.12",
)
use_repo(python, python = "python_versions")
bazel_dep(name = "rules_rust", version = "0.51.0")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
rust_analyzer_version = "nightly/2024-07-24",
rustfmt_version = "nightly/2024-07-24",
sha256s = {
"2024-07-24/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz": "76cdce7fc08e4aed1429675409b2a149ffbb787fb7d185db12a15d2bb65167e5",
"2024-07-24/clippy-nightly-x86_64-unknown-linux-gnu.tar.xz": "d687aac8b1ee766150b5caec5e65e9d5a50d3ec2e87b1f43febf5cef9943dbb7",
"2024-07-24/cargo-nightly-x86_64-unknown-linux-gnu.tar.xz": "b5281d4f15ef66142391ef7b43a1d406c66a5f6ad65e8c89e65cd0fd69e12600",
"2024-07-24/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz": "3c975c51b8420b6a1bcf0405e65364a1592ab2d24a9574008e1d1a899c0c8086",
"2024-07-24/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.xz": "7a2feb5e82f83f30b994117a562db1af59c1c675fe090a963bd2aecd319e300f",
"2024-07-24/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz": "b317c632f208c4b3d69e356264d5b74602147a2edef014cad340eaffbe0db0e5",
"2024-07-24/rustc-nightly-x86_64-apple-darwin.tar.xz": "bb7cf8790bd9ba1612d931485b5dac85d697c60fd3adec2011fd4ca418852bf6",
"2024-07-24/clippy-nightly-x86_64-apple-darwin.tar.xz": "c2c30e6b97f3d20ec535f22dd28a934e7e250bad0d465ae936f6bd1c774e9883",
"2024-07-24/cargo-nightly-x86_64-apple-darwin.tar.xz": "eb4b98b95bc0c1504a685b31689e9604e194c5d4378f4d2fc0e0f0fcb86757db",
"2024-07-24/rustfmt-nightly-x86_64-apple-darwin.tar.xz": "2e51c84d05c3b94754dae9440f8a5ae86ddcd277dad05e179ebbf2f9d301961f",
"2024-07-24/llvm-tools-nightly-x86_64-apple-darwin.tar.xz": "228d61577183ab5a839e659e234fffe7aea5c8022f7a361efa738b166e50ade6",
"2024-07-24/rust-std-nightly-x86_64-apple-darwin.tar.xz": "cec2e9651d9ccd9f7474d96ffaabcad63b597f66785f378b119ee094503e9a20",
"2024-07-24/rustc-nightly-aarch64-apple-darwin.tar.xz": "3a2e89e80c6ff03aa6d1ea7dd520032dd74a632ac8d4344dfac48a152ac8d5fa",
"2024-07-24/clippy-nightly-aarch64-apple-darwin.tar.xz": "5528091b3af1b4d50288eced91eac1f15efc33c964b333546039a76f6c7a92f9",
"2024-07-24/cargo-nightly-aarch64-apple-darwin.tar.xz": "34a7fe290172416161f35707567b5b5a5e563be89229f30eac8b522df1c7a6a0",
"2024-07-24/rustfmt-nightly-aarch64-apple-darwin.tar.xz": "d42491f55423d24073df0d514d9df11d9f32d2c513bd7a4a1cf41e109c30e695",
"2024-07-24/llvm-tools-nightly-aarch64-apple-darwin.tar.xz": "3fdefeb279f7219eb814f29680dc00a207dcb4e823574c5c26b2fe44c0dbefae",
"2024-07-24/rust-std-nightly-aarch64-apple-darwin.tar.xz": "ea8afa34a2010b7ed371ad260af837cf89d02fb24783ed9cee75685781247fde",
},
versions = [
"1.81.0",
"nightly/2024-07-24",
],
)
rust_host_tools = use_extension(
"@rules_rust//rust:extension.bzl",
"rust_host_tools",
)
rust_host_tools.host_tools(
edition = "2021",
version = "1.81.0",
)
use_repo(rust, "rust_toolchains")
crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")
crate.from_cargo(
name = "crates",
cargo_lockfile = "//:Cargo.lock",
manifests = ["//:Cargo.toml"],
supported_platform_triples = [
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-unknown-linux-gnueabi",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
],
)
use_repo(crate, "crates")
rust_analyzer = use_extension(
"@rules_rust//tools/rust_analyzer:extension.bzl",
"rust_analyzer_dependencies",
)
rust_analyzer.rust_analyzer_dependencies()
bazel_dep(name = "protobuf", version = "27.5", repo_name = "com_google_protobuf")
bazel_dep(name = "toolchains_protoc", version = "0.3.3")
protoc = use_extension("@toolchains_protoc//protoc:extensions.bzl", "protoc")
protoc.toolchain(
google_protobuf = "com_google_protobuf",
version = "v28.0",
)
# Local remote execution.
bazel_dep(name = "local-remote-execution", version = "0.0.0")
local_path_override(
module_name = "local-remote-execution",
path = "local-remote-execution",
)