Skip to content

Commit c4f43c1

Browse files
committed
[build] Port lol-html to bzlmod
1 parent 8e65039 commit c4f43c1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

WORKSPACE

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
workspace(name = "workerd")
22

3-
load("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
4-
53
# ========================================================================================
64
# Rust bootstrap
75

@@ -16,14 +14,6 @@ http_archive(
1614
url = "https://github.com/cloudflare/workerd-cxx/tarball/916f0e7be8f1d43fe5ece1b72edd3c5844243d7b",
1715
)
1816

19-
# rust-based lolhtml dependency, including the API header.
20-
# Presented as a separate repository to allow overrides.
21-
new_local_repository(
22-
name = "com_cloudflare_lol_html",
23-
build_file = "@workerd//deps/rust:BUILD.lolhtml",
24-
path = "empty",
25-
)
26-
2717
load("//build/deps:dep_pyodide.bzl", "dep_pyodide")
2818

2919
dep_pyodide()

build/deps/rust.MODULE.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ use_repo(
4343
# Needed to retrieve lol-html header
4444
"crates_vendor__lol_html_c_api-1.3.0",
4545
)
46+
47+
# rust-based lolhtml dependency, including the API header.
48+
# Presented as a separate repository to allow overrides.
49+
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
50+
51+
new_local_repository(
52+
name = "com_cloudflare_lol_html",
53+
build_file = "@workerd//deps/rust:BUILD.lolhtml",
54+
path = "empty",
55+
)

0 commit comments

Comments
 (0)