chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
+29
View File
@@ -0,0 +1,29 @@
licenses(["notice"]) # 3-Clause BSD
exports_files(["LICENSE.MIT"])
cc_library(
name = "nlohmann_json_lib",
hdrs = glob([
"include/nlohmann/**/*.hpp",
]),
copts = [
"-I external/nlohmann_json_lib",
],
visibility = ["//visibility:public"],
alwayslink = 1,
)
cc_library(
name = "nlohmann_json",
includes = ["include"],
visibility = ["//visibility:public"],
deps = ["nlohmann_json_lib"],
)
# For compatibility in bzlmod.
alias(
name = "json",
actual = ":nlohmann_json",
visibility = ["//visibility:public"],
)
+12
View File
@@ -0,0 +1,12 @@
"""Loads the nlohmann_json library, used by TF."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
tf_http_archive(
name = "nlohmann_json_lib",
build_file = "//third_party/nlohmann_json:nlohmann_json.BUILD",
sha256 = "5daca6ca216495edf89d167f808d1d03c4a4d929cef7da5e10f135ae1540c7e4",
strip_prefix = "json-3.10.5",
urls = tf_mirror_urls("https://github.com/nlohmann/json/archive/v3.10.5.tar.gz"),
)