-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMODULE.bazel
More file actions
78 lines (68 loc) · 2.47 KB
/
MODULE.bazel
File metadata and controls
78 lines (68 loc) · 2.47 KB
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
module(
name = "subspace",
version = "2.8.2",
)
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "abseil-cpp", version = "20250512.1")
bazel_dep(name = "googletest", version = "1.17.0")
bazel_dep(name = "protobuf", version = "33.2")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_java", version = "9.1.0")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_android_ndk", version = "0.1.5")
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")
bazel_dep(name = "coroutines", version = "3.3.2")
bazel_dep(name = "cpp_toolbelt", version = "2.1.2")
bazel_dep(name = "rules_python", version = "1.7.0")
# Boost (for asio_rpc)
bazel_dep(name = "boost.asio", version = "1.87.0.bcr.1")
bazel_dep(name = "boost.coroutine", version = "1.87.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "rules_proto", version = "6.0.2")
single_version_override(
module_name = "boost.asio",
patches = ["//patches:boost_asio_android_pthread.patch"],
patch_strip = 1,
)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
is_default = True,
python_version = "3.11.1",
)
bazel_dep(name = "pybind11_bazel", version = "3.0.0")
# Rust support
bazel_dep(name = "rules_rust", version = "0.68.1")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
versions = ["1.85.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "crates",
cargo_lockfile = "//rust_client:Cargo.lock",
manifests = ["//rust_client:Cargo.toml"],
)
# cargo-bazel maps getrandom's macOS libc dep to aarch64-apple-darwin only; x86_64 (Intel) Darwin
# falls through to empty deps but the same sources still use libc (getentropy, errno).
crate.annotation_select(
crate = "getrandom",
repositories = ["crates"],
triples = [
"x86_64-apple-darwin",
"i686-apple-darwin",
],
version = "0.4.1",
deps = ["@crates__libc-0.2.182//:libc"],
)
use_repo(crate, "crates")
# Android NDK toolchain for cross-compilation.
android_ndk_repository_extension = use_extension(
"@rules_android_ndk//:extension.bzl",
"android_ndk_repository_extension",
)
use_repo(android_ndk_repository_extension, "androidndk")