-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathMODULE.bazel
More file actions
61 lines (55 loc) · 2.2 KB
/
Copy pathMODULE.bazel
File metadata and controls
61 lines (55 loc) · 2.2 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
# Part of the Crubit project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
module(
name = "rules_crubit",
version = "0.0.1",
)
# TODO: this needs to be paired with a refreshed patch
# (see WORKSPACE.bzlmod)
bazel_dep(name = "rules_rust", version = "0.71.3")
bazel_dep(name = "rules_cc", version = "0.2.19")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "abseil-cpp", version = "20250127.1")
git_override(
# with nullability support
module_name = "abseil-cpp",
commit = "e3a2008867c5dc5c0f4c7a4e64fb568df70f23be",
remote = "https://github.com/abseil/abseil-cpp",
)
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "fuzztest", version = "20250214.0")
bazel_dep(name = "google_benchmark", version = "1.9.1")
bazel_dep(name = "googletest", version = "1.17.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "protobuf", version = "35.0")
bazel_dep(name = "re2", version = "2024-07-02.bcr.1")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "rules_python", version = "1.7.0")
bazel_dep(name = "toolchains_llvm", version = "1.8.0")
# We don't directly use rules_foreign_cc, but *something* does, and depends on an
# out of date version that doesn't work with newer Bazel releases. So here we force
# it to be a newer version.
bazel_dep(name = "rules_foreign_cc", version = "0.15.0")
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "crate_index",
lockfile = "//:Cargo.Bazel.lock",
cargo_lockfile = "//:Cargo.lock",
manifests = [
"//:Cargo.toml",
],
)
use_repo(crate, "crate_index")
crubit_toolchains = use_extension("//bazel:extensions.bzl", "crubit_toolchains")
crubit_toolchains.configure(
llvm_version = "22.1.0",
rust_version = "nightly/2026-07-01",
)
use_repo(crubit_toolchains, "llvm_toolchain", "rust_toolchains", "llvm_version_check")
register_toolchains(
"@rust_toolchains//:all",
"@llvm_toolchain//:all",
"//common/bazel_support/toolchains:cc_bindings_from_rs_on_demand_linux",
)