| # Licensed under the Apache-2.0 license |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") |
| |
| rust_library( |
| name = "spdm_hash_lib", |
| srcs = glob(["src/**/*.rs"]), |
| crate_name = "openprot_spdm_hash", |
| edition = "2024", |
| visibility = ["//visibility:public"], |
| deps = [ |
| # TODO: Replace stub with real //services/crypto/client when imported |
| "//services/spdm/common/tests/crypto-client-stub:crypto_client", |
| "@rust_crates//:spdm-lib", |
| ], |
| ) |
| |
| rust_test( |
| name = "spdm_hash_test", |
| crate = ":spdm_hash_lib", |
| ) |