forked from bon-cdp/f2chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
43 lines (36 loc) · 1.72 KB
/
Copy pathMODULE.bazel
File metadata and controls
43 lines (36 loc) · 1.72 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
# f2chat: Polynomial routing with sheaf-wreath attention (True FHE)
module(name = "f2chat", version = "2.0.0")
# Core dependencies
bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "com_google_absl")
bazel_dep(name = "googletest", version = "1.15.2")
bazel_dep(name = "google_benchmark", version = "1.8.3")
bazel_dep(name = "eigen", version = "3.4.0")
bazel_dep(name = "rules_foreign_cc", version = "0.12.0")
bazel_dep(name = "rules_cc", version = "0.0.2")
# OpenFHE for homomorphic encryption
# Note: OpenFHE is added via git_repository since it's not in BCR
# Using v1.4.2 (latest stable as of November 2025)
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "openfhe",
remote = "https://github.com/openfheorg/openfhe-development.git",
tag = "v1.2.1", # Last stable version with Bazel support
build_file = "//third_party:openfhe.BUILD",
)
# Cereal for serialization (required by OpenFHE)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "cereal",
urls = ["https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.2.tar.gz"],
sha256 = "16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f",
strip_prefix = "cereal-1.3.2",
build_file = "//third_party:cereal.BUILD",
)
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
commit = "abb61a688167623088f8768cc9264798df6a9d10",
)