blob: b675278942ca22906fe4faf8df49b29be52e43b6 [file]
# Licensed under the Apache-2.0 license
# SPDX-License-Identifier: Apache-2.0
load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_library", "rust_test")
package(default_visibility = ["//visibility:public"])
rust_library(
name = "blocking",
srcs = glob([
"src/*.rs",
"src/**/*.rs",
]),
crate_name = "openprot_hal_blocking",
edition = "2024",
deps = [
"@rust_crates//:embedded-hal",
"@rust_crates//:rand_core",
"@rust_crates//:subtle",
"@rust_crates//:zerocopy",
"@rust_crates//:zeroize",
],
)
rust_doc(
name = "blocking_doc",
crate = ":blocking",
)
# The crate's own unit tests (the facade fakes, address validation, and so on).
rust_test(
name = "blocking_test",
crate = ":blocking",
)