Skip to content

Commit a3a569e

Browse files
tylerwilliamscopybara-github
authored andcommitted
Add BLAKE3 source code to third_party
Add BLAKE3 source code to third_party This PR adds the BLAKE3 C and asm sources to third_party, and includes a BUILD file to build them. This is a partial commit for bazelbuild#18658. Closes bazelbuild#18682. PiperOrigin-RevId: 541539341 Change-Id: I49b1edce20a7d0f986e29712e6050e4e0b9c1d44
1 parent 0ff4f6d commit a3a569e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

WORKSPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ dist_http_archive(
194194
strip_prefix = "zstd-jni-1.5.2-3",
195195
)
196196

197+
dist_http_archive(
198+
name = "blake3",
199+
build_file = "//third_party:blake3/blake3.BUILD",
200+
patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
201+
patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
202+
strip_prefix = "BLAKE3-1.3.3",
203+
)
204+
197205
http_archive(
198206
name = "org_snakeyaml",
199207
build_file_content = """

distdir_deps.bzl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,21 @@ DIST_DEPS = {
270270
"license_text": "LICENSE",
271271
"package_version": "1.5.2-3",
272272
},
273+
"blake3": {
274+
"archive": "v1.3.3.zip",
275+
"sha256": "bb529ba133c0256df49139bd403c17835edbf60d2ecd6463549c6a5fe279364d",
276+
"urls": [
277+
"https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.3.3.zip",
278+
],
279+
"used_in": [
280+
"additional_distfiles",
281+
],
282+
"license_kinds": [
283+
"@rules_license//licenses/spdx:Apache-2.0",
284+
],
285+
"license_text": "LICENSE",
286+
"package_version": "1.3.3",
287+
},
273288
###################################################
274289
#
275290
# Build time dependencies for testing and packaging

0 commit comments

Comments
 (0)