Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
57 lines (51 loc) · 2.66 KB
/
Copy pathMODULE.bazel
File metadata and controls
57 lines (51 loc) · 2.66 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
"Bazel dependencies, see https://registry.bazel.build"
module(name = "workerd")
# sqlite3 is downloaded from sqlite.org (not GitHub), so it remains manual.
# We have some patches that aren't included in BCR:
# https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/sqlite3/3.53.3/patches
bazel_dep(name = "sqlite3")
archive_override(
module_name = "sqlite3",
build_file = "//:build/BUILD.sqlite3",
patch_args = ["-p1"],
patch_tool = "patch",
patches = [
"//:patches/sqlite/0001-row-counts-plain.patch",
"//:patches/sqlite/0002-macOS-missing-PATH-fix.patch",
"//:patches/sqlite/0003-sqlite-complete-early-exit.patch",
"//:patches/sqlite/0004-authorizer-rename-to-destination-name.patch",
"//:patches/sqlite/0005-restrict-internal-functions-to-nested-parse.patch",
"//:patches/sqlite/0006-call-authorizer-in-default-column-expressions.patch",
],
remote_file_integrity = {
"MODULE.bazel": "sha256-y8b6x7BNbvOuFQxzh1vbyJ/1F/RP67Ho3gJUJU3wZeE=",
},
# Using build file from more recent version since it imports rules_cc properly
remote_file_urls = {
"MODULE.bazel": ["https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/refs/heads/main/modules/sqlite3/3.53.3/MODULE.bazel"],
},
sha256 = "d18fa15aec74d8c17e1463f861095adc01b5ad190256acb4f91d22f0368d232b",
strip_prefix = "sqlite-src-3530400",
url = "https://sqlite.org/2026/sqlite-src-3530400.zip",
)
# rules_android/rules_go are not used by ourselves, but protobuf pulls in outdated versions that are
# missing rules_cc symbols – can be dropped once protobuf uses more recent versions. At least we can
# use repo_name = None so that these are not visible to workerd itself and won't be pulled in if not
# needed transitively.
bazel_dep(name = "rules_go", version = "0.60.0", repo_name = None)
bazel_dep(name = "rules_android", version = "0.7.1", repo_name = None)
# Automatically managed dependencies
include("//build/deps:gen/deps.MODULE.bazel")
include("//build/deps:gen/build_deps.MODULE.bazel")
include("//build/deps:gen/shared_deps.MODULE.bazel")
# Must be loaded after automated dependencies
include("//build/deps:rust.MODULE.bazel")
include("//build/deps:nodejs.MODULE.bazel")
include("//build/deps:python.MODULE.bazel")
include("//build/deps:pyodide.MODULE.bazel")
include("//build/deps:v8.MODULE.bazel")
include("//build/deps:oci.MODULE.bazel")
include("//build/deps/formatters:rustfmt.MODULE.bazel")
# Make local_config_cc available, used for retrieving Windows clang-cl toolchain
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
use_repo(cc_configure, "local_config_cc")