Skip to content

Commit a36511b

Browse files
committed
[build] Move workerd-cxx to bzlmod
1 parent 5437fb5 commit a36511b

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

WORKSPACE

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

3-
# ========================================================================================
4-
# Rust bootstrap
5-
6-
load("//:build/http.bzl", "http_archive")
7-
8-
http_archive(
9-
name = "workerd-cxx",
10-
repo_mapping = {"@crates.io": "@crates_vendor"},
11-
sha256 = "7ddce8e81d0b81adf6f07f18376a6fea9dca42e6b03b2fcf703c62196c270ad0",
12-
strip_prefix = "cloudflare-workerd-cxx-916f0e7",
13-
type = "tgz",
14-
url = "https://github.com/cloudflare/workerd-cxx/tarball/916f0e7be8f1d43fe5ece1b72edd3c5844243d7b",
15-
)
16-
173
load("//build/deps:dep_pyodide.bzl", "dep_pyodide")
184

195
dep_pyodide()

build/deps/rust.MODULE.bazel

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,20 @@ new_local_repository(
5353
build_file = "@workerd//deps/rust:BUILD.lolhtml",
5454
path = "empty",
5555
)
56+
57+
# workerd-cxx
58+
http = use_extension("@//:build/exts/http.bzl", "http")
59+
60+
inject_repo(
61+
http,
62+
**{"crates.io": "crates_vendor"}
63+
)
64+
65+
http.archive(
66+
name = "workerd-cxx",
67+
sha256 = "7ddce8e81d0b81adf6f07f18376a6fea9dca42e6b03b2fcf703c62196c270ad0",
68+
strip_prefix = "cloudflare-workerd-cxx-916f0e7",
69+
type = "tgz",
70+
url = "https://github.com/cloudflare/workerd-cxx/tarball/916f0e7be8f1d43fe5ece1b72edd3c5844243d7b",
71+
)
72+
use_repo(http, "workerd-cxx")

0 commit comments

Comments
 (0)