-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMODULE.bazel
More file actions
77 lines (62 loc) · 2.55 KB
/
MODULE.bazel
File metadata and controls
77 lines (62 loc) · 2.55 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
module(
name = "typedb_protocol",
version = "0.0.0",
compatibility_level = 1,
)
# ===========================================================
# Common
# ===========================================================
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")
# ===========================================================
# Languages
# ===========================================================
# Rust
bazel_dep(name = "rules_rust", version = "0.56.0")
# Backport a bug fix from rules_rust 0.58 (bazelbuild/rules_rust#3251)
git_override(
module_name = "rules_rust",
remote = "https://github.com/bazelbuild/rules_rust",
tag = "0.56.0",
patches = ["@@typedb_dependencies+//patches:rules_rust.patch"],
)
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2024",
versions = ["1.93.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
rust_host_tools.host_tools(version = "1.93.0")
# ===========================================================
# Protobuf & gRPC dependencies
# ===========================================================
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "protobuf", version = "29.3", repo_name = "com_google_protobuf")
bazel_dep(name = "grpc", version = "1.69.0")
bazel_dep(name = "rules_proto_grpc", version = "5.0.1")
# ===========================================================
# Package managers
# ===========================================================
# Rust crates
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
use_repo(crate, "crates")
# ===========================================================
# TypeDB repos
# ===========================================================
bazel_dep(name = "typedb_bazel_distribution", version = "0.0.0")
git_override(
module_name = "typedb_bazel_distribution",
remote = "https://github.com/typedb/bazel-distribution",
commit = "6c81a5180ed94a11c989e06a4ff8215df6da163e",
)
bazel_dep(name = "typedb_dependencies", version = "0.0.0")
git_override(
module_name = "typedb_dependencies",
remote = "https://github.com/typedb/dependencies",
commit = "48ef6e41f9f0deadc0d59bb0e9d4a58efd0099af",
)