Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
50 lines (45 loc) · 1.65 KB
/
Copy pathMODULE.bazel
File metadata and controls
50 lines (45 loc) · 1.65 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
module(
name = "dash_base_sdk",
version = "0.0.0",
)
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_rust", version = "0.73.0")
bazel_dep(name = "toolchains_llvm", version = "1.8.0")
include("//bazel:darwin.MODULE.bazel")
include("//bazel:linux.MODULE.bazel")
include("//bazel:llvm.MODULE.bazel")
include("//bazel:rust.MODULE.bazel")
# The workspace manifest brings in `dash-meta-bazel`, whose `full` features
# decide the third-party graph `crate_universe` resolves. An unlisted triple
# is incompatible.
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "crates",
cargo_lockfile = "//:Cargo.lock",
host_tools = "@rust_host_tools_pinned",
manifests = ["//:Cargo.toml"],
# Cargo owns `Cargo.lock`; Bazel only reads it.
skip_cargo_lockfile_overwrite = True,
supported_platform_triples = [
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
],
)
# rules_rust hides the target flags from build scripts, so `blst` would probe
# the builder's CPU for ADX. The x86_64 floor includes ADX, and other targets
# ignore the feature.
crate.annotation(
crate = "blst",
crate_features = ["force-adx"],
)
use_repo(crate, "crates")
# Its extension reads its own `MODULE.bazel`, which the lockfile records under
# the in-tree output base. Marking it reproducible keeps the checkout path out.
single_version_override(
module_name = "pybind11_bazel",
patch_strip = 1,
patches = ["//bazel/patches:pybind11_bazel-reproducible.patch"],
)