blob: e4da99857180854fb2b58ef2236d3efaeec0e3a1 [file]
# Licensed under the Apache-2.0 license
# SPDX-License-Identifier: Apache-2.0
load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_library")
package(default_visibility = ["//visibility:public"])
rust_library(
name = "hal",
srcs = glob([
"src/*.rs",
"src/**/*.rs",
]),
crate_name = "openprot_hal",
edition = "2024",
deps = [
"//util/region",
"@rust_crates//:embedded-hal",
],
)
rust_doc(
name = "openprot_hal_doc",
crate = ":hal",
)