Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
91 lines (76 loc) · 3.07 KB
/
Copy pathMODULE.bazel
File metadata and controls
91 lines (76 loc) · 3.07 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
"""
HBF - Web Compute Environment
Bazel module configuration (bzlmod)
"""
module(
name = "hbf",
version = "0.1.1",
)
# Bazel rules for C/C++ compilation
bazel_dep(name = "rules_cc", version = "0.1.1")
# Platform support
bazel_dep(name = "platforms", version = "1.0.0")
# Musl toolchain for 100% static linking (no glibc)
# This automatically enables fully_static_link feature
bazel_dep(name = "toolchains_musl", version = "0.1.27", dev_dependency = True)
# Use musl toolchains extension
musl = use_extension("@toolchains_musl//:toolchains_musl.bzl", "toolchains_musl", dev_dependency = True)
use_repo(musl, "musl_toolchains_hub")
register_toolchains("@musl_toolchains_hub//:all")
# SQLite3 database (from Bazel Central Registry)
bazel_dep(name = "sqlite3", version = "3.50.4")
# zlib compression library (from Bazel Central Registry)
bazel_dep(name = "zlib", version = "1.3.1.bcr.7")
# CivetWeb HTTP server library (fetched from git)
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "civetweb",
remote = "https://github.com/civetweb/civetweb.git",
commit = "d7ba35bbb649209c66e582d5a0244ba988a15159",
# tag = "v1.16",
build_file = "//third_party/civetweb:civetweb.BUILD",
)
# QuickJS-NG JavaScript engine (MIT license)
git_repository(
name = "quickjs-ng",
remote = "https://github.com/quickjs-ng/quickjs.git",
commit = "482291286b9960c255ff8765d18a618cc87d89a2", #v0.8.0
# commit="6a9fe9af5ca0bf7c49ae697edef44864272317d1",
# tag = "v0.11.0",
build_file = "//third_party/quickjs-ng:quickjs.BUILD",
)
# HTTP archive support for fetching third-party web assets
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# HTMX - Hypermedia-driven web framework (MIT license)
# Version: 2.0.3 (latest stable)
http_file(
name = "htmx",
url = "https://unpkg.com/htmx.org@2.0.3/dist/htmx.min.js",
sha256 = "491955cd1810747d7d7b9ccb936400afb760e06d25d53e4572b64b6563b2784e",
downloaded_file_path = "htmx.min.js",
)
# Monaco Editor - VS Code's text editor (MIT license)
# Version: 0.52.0 (latest stable)
# Note: Fetching pre-built 'min' distribution from npm registry
# REMOVED DUE TO SIZE CONCERNS
# http_archive(
# name = "monaco_editor",
# url = "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.52.0.tgz",
# sha256 = "5dbda58750b13452de39affcea703af096022d8e3546c67ed5d3bd072763f939",
# strip_prefix = "package",
# build_file_content = """
# filegroup(
# name = "min_vs",
# srcs = glob(["min/vs/**/*"]),
# visibility = ["//visibility:public"],
# )
# """,
# )
# find-my-way router (MIT license) is located in third_party/find-my-way
# Pre-bundled to ESM for QuickJS compatibility
# Version: 9.3.0
# CodeMirror 6 (MIT license) is located in third_party/codemirror
# Pre-bundled from @codemirror/view@6.25.0 with dependencies
# Includes: @codemirror/state, @marijn/find-cluster-break, style-mod, w3c-keyname
# Version: 6.25.0