This repository was archived by the owner on Dec 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMODULE.bazel
More file actions
121 lines (87 loc) · 3.47 KB
/
MODULE.bazel
File metadata and controls
121 lines (87 loc) · 3.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
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
module(
name = "everest-framework",
version = "0.25.0",
)
###############################################################################
# B A Z E L C E N T R A L R E G I S T R Y # https://registry.bazel.build/
###############################################################################
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "bazel_features", version = "1.21.0")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "rules_python", version = "1.3.0")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
bazel_dep(name = "rules_rust", version = "0.59.2")
BOOST_VERSION = "1.87.0"
bazel_dep(name = "boost.uuid", version = BOOST_VERSION)
bazel_dep(name = "boost.exception", version = BOOST_VERSION)
bazel_dep(name = "boost.log", version = BOOST_VERSION)
bazel_dep(name = "boost.program_options", version = BOOST_VERSION)
bazel_dep(name = "boost.utility", version = BOOST_VERSION)
bazel_dep(name = "fast_float", version = "6.1.6")
bazel_dep(name = "nlohmann_json", version = "3.12.0", repo_name = "com_github_nlohmann_json")
bazel_dep(name = "cxx.rs", version = "1.0.153")
bazel_dep(name = "rules_foreign_cc", version = "0.14.0")
bazel_dep(name = "fmt", version = "12.1.0", repo_name = "com_github_fmtlib_fmt")
bazel_dep(name = "sqlite3", version = "3.49.1")
bazel_dep(name = "openssl", version = "3.3.1.bcr.6")
bazel_dep(name = "rapidyaml", version = "0.10.0")
deps = use_extension("//third-party/bazel:extension.bzl", "deps")
use_repo(
deps,
"com_github_everest_liblog",
"com_github_everest_everest-sqlite",
"com_github_pboettch_json-schema-validator",
"com_github_HowardHinnant_date",
"com_github_warmcatt_libwebsockets",
"com_github_LiamBindle_mqtt-c",
"libcap",
"pybind11_json",
)
###############################################################################
# T O O L C H A I N S
###############################################################################
# Rust toolchain
RUST_EDITION = "2021"
RUST_VERSION = "1.86.0"
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = RUST_EDITION,
versions = [RUST_VERSION],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
# Python toolchain
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.10",
)
###############################################################################
# C A R G O W O R K S P A C E
###############################################################################
everest_framework_crate_index = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
everest_framework_crate_index.from_cargo(
name = "everest_framework_crate_index",
cargo_lockfile = "//everestrs:Cargo.lock",
manifests = [
"//everestrs:Cargo.toml",
"//everestrs/everestrs:Cargo.toml",
"//everestrs/everestrs-build:Cargo.toml",
],
)
use_repo(
everest_framework_crate_index,
"everest_framework_crate_index",
)
everest_framework_validate_crate_index = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
everest_framework_validate_crate_index.from_cargo(
name = "everest_framework_validate_crate_index",
cargo_lockfile = "//bazel/validate:Cargo.lock",
manifests = [
"//bazel/validate:Cargo.toml",
],
)
use_repo(
everest_framework_validate_crate_index,
"everest_framework_validate_crate_index",
)