From a3a569ea8b25192a8603f6599d69799ed9aaf233 Mon Sep 17 00:00:00 2001 From: Tyler Williams Date: Mon, 19 Jun 2023 00:28:01 -0700 Subject: [PATCH] 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 #18658. Closes #18682. PiperOrigin-RevId: 541539341 Change-Id: I49b1edce20a7d0f986e29712e6050e4e0b9c1d44 --- WORKSPACE | 8 ++++++++ distdir_deps.bzl | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index cb1169b52cae57..ad15753e120e55 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -194,6 +194,14 @@ dist_http_archive( strip_prefix = "zstd-jni-1.5.2-3", ) +dist_http_archive( + name = "blake3", + build_file = "//third_party:blake3/blake3.BUILD", + patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE, + patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN, + strip_prefix = "BLAKE3-1.3.3", +) + http_archive( name = "org_snakeyaml", build_file_content = """ diff --git a/distdir_deps.bzl b/distdir_deps.bzl index a255be8bce9bd4..9c79dee1ba9607 100644 --- a/distdir_deps.bzl +++ b/distdir_deps.bzl @@ -270,6 +270,21 @@ DIST_DEPS = { "license_text": "LICENSE", "package_version": "1.5.2-3", }, + "blake3": { + "archive": "v1.3.3.zip", + "sha256": "bb529ba133c0256df49139bd403c17835edbf60d2ecd6463549c6a5fe279364d", + "urls": [ + "https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.3.3.zip", + ], + "used_in": [ + "additional_distfiles", + ], + "license_kinds": [ + "@rules_license//licenses/spdx:Apache-2.0", + ], + "license_text": "LICENSE", + "package_version": "1.3.3", + }, ################################################### # # Build time dependencies for testing and packaging