diff --git a/BUILD.bazel b/BUILD.bazel index 863e41209..387e65dc9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -13,7 +13,10 @@ rust_library( ":cxxbridge-macro", ], visibility = ["//visibility:public"], - deps = [":core-lib"], + deps = [ + ":core-lib", + "@crates.io//:foldhash", + ], ) alias( diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 40d5b5b6a..79352f857 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -105,7 +105,7 @@ "moduleExtensions": { "//tools/bazel:extension.bzl%crate_repositories": { "general": { - "bzlTransitiveDigest": "LVm2z0+h4+WfZG/ryVPhfrrA6rJQvrCN8Bdq1dzfY1w=", + "bzlTransitiveDigest": "qufJ5mVjkVgXu60TdDx+mOdJvq1rtcVwH77oCaJE1K8=", "usagesDigest": "asGxJIEmfRVxm6+g7CFSxl5zD/l9sk/bUAPWuK0xF7M=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, @@ -189,6 +189,19 @@ "build_file": "@@//third-party/bazel:BUILD.codespan-reporting-0.11.1.bazel" } }, + "vendor__foldhash-0.1.3": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "sha256": "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/foldhash/0.1.3/download" + ], + "strip_prefix": "foldhash-0.1.3", + "build_file": "@@//third-party/bazel:BUILD.foldhash-0.1.3.bazel" + } + }, "vendor__proc-macro2-1.0.89": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_archive", @@ -483,6 +496,11 @@ "vendor__codespan-reporting-0.11.1", "vendor__codespan-reporting-0.11.1" ], + [ + "", + "vendor__foldhash-0.1.3", + "vendor__foldhash-0.1.3" + ], [ "", "vendor__proc-macro2-1.0.89", diff --git a/third-party/bazel/BUILD.bazel b/third-party/bazel/BUILD.bazel index 1847d4777..c051d0edf 100644 --- a/third-party/bazel/BUILD.bazel +++ b/third-party/bazel/BUILD.bazel @@ -49,6 +49,12 @@ alias( tags = ["manual"], ) +alias( + name = "foldhash", + actual = "@vendor__foldhash-0.1.3//:foldhash", + tags = ["manual"], +) + alias( name = "proc-macro2", actual = "@vendor__proc-macro2-1.0.89//:proc_macro2", diff --git a/third-party/bazel/BUILD.foldhash-0.1.3.bazel b/third-party/bazel/BUILD.foldhash-0.1.3.bazel new file mode 100644 index 000000000..1bf45be20 --- /dev/null +++ b/third-party/bazel/BUILD.foldhash-0.1.3.bazel @@ -0,0 +1,86 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @@//third-party:vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "foldhash", + srcs = glob( + include = ["**/*.rs"], + allow_empty = True, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=foldhash", + "manual", + "noclippy", + "norustfmt", + ], + target_compatible_with = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [], + "@rules_rust//rust/platform:aarch64-apple-ios": [], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [], + "@rules_rust//rust/platform:aarch64-linux-android": [], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [], + "@rules_rust//rust/platform:aarch64-unknown-fuchsia": [], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [], + "@rules_rust//rust/platform:armv7-linux-androideabi": [], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [], + "@rules_rust//rust/platform:i686-apple-darwin": [], + "@rules_rust//rust/platform:i686-linux-android": [], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [], + "@rules_rust//rust/platform:i686-unknown-freebsd": [], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [], + "@rules_rust//rust/platform:wasm32-wasi": [], + "@rules_rust//rust/platform:wasm32-wasip1": [], + "@rules_rust//rust/platform:x86_64-apple-darwin": [], + "@rules_rust//rust/platform:x86_64-apple-ios": [], + "@rules_rust//rust/platform:x86_64-linux-android": [], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [], + "@rules_rust//rust/platform:x86_64-unknown-fuchsia": [], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [], + "@rules_rust//rust/platform:x86_64-unknown-none": [], + "//conditions:default": ["@platforms//:incompatible"], + }), + version = "0.1.3", +) diff --git a/third-party/bazel/defs.bzl b/third-party/bazel/defs.bzl index 31149e928..9d57bd3f7 100644 --- a/third-party/bazel/defs.bzl +++ b/third-party/bazel/defs.bzl @@ -298,6 +298,7 @@ _NORMAL_DEPENDENCIES = { "cc": Label("@vendor__cc-1.1.37//:cc"), "clap": Label("@vendor__clap-4.5.20//:clap"), "codespan-reporting": Label("@vendor__codespan-reporting-0.11.1//:codespan_reporting"), + "foldhash": Label("@vendor__foldhash-0.1.3//:foldhash"), "proc-macro2": Label("@vendor__proc-macro2-1.0.89//:proc_macro2"), "quote": Label("@vendor__quote-1.0.37//:quote"), "scratch": Label("@vendor__scratch-1.0.7//:scratch"), @@ -481,6 +482,16 @@ def crate_repositories(): build_file = Label("//third-party/bazel:BUILD.codespan-reporting-0.11.1.bazel"), ) + maybe( + http_archive, + name = "vendor__foldhash-0.1.3", + sha256 = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/foldhash/0.1.3/download"], + strip_prefix = "foldhash-0.1.3", + build_file = Label("//third-party/bazel:BUILD.foldhash-0.1.3.bazel"), + ) + maybe( http_archive, name = "vendor__proc-macro2-1.0.89", @@ -685,6 +696,7 @@ def crate_repositories(): struct(repo = "vendor__cc-1.1.37", is_dev_dep = False), struct(repo = "vendor__clap-4.5.20", is_dev_dep = False), struct(repo = "vendor__codespan-reporting-0.11.1", is_dev_dep = False), + struct(repo = "vendor__foldhash-0.1.3", is_dev_dep = False), struct(repo = "vendor__proc-macro2-1.0.89", is_dev_dep = False), struct(repo = "vendor__quote-1.0.37", is_dev_dep = False), struct(repo = "vendor__rustversion-1.0.18", is_dev_dep = False),