blob: 744b92058fa943a9e8cab67bdeeb5b14333ef736 [file] [log] [blame]
# Copyright 2024 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_proc_macro")
package(default_visibility = ["//visibility:public"])
rust_proc_macro(
name = "pw_log_backend_macro",
srcs = [
"pw_log_backend_macro.rs",
],
visibility = ["//visibility:public"],
deps = [
"@pigweed//pw_format/rust:pw_format",
"@pigweed//pw_log/rust:pw_log_backend_api",
"@pigweed//pw_status/rust:pw_status",
"@rust_crates//:proc-macro2",
"@rust_crates//:quote",
"@rust_crates//:syn",
],
)
rust_library(
name = "pw_log_backend",
srcs = [
"pw_log_backend.rs",
],
crate_name = "pw_log_backend",
proc_macro_deps = [":pw_log_backend_macro"],
tags = ["manual"],
visibility = ["//visibility:public"],
deps = [
"@pigweed//pw_log/rust:pw_log_backend_api",
],
)