blob: d102a96d81858ba827e1604f71448ecb7435b1f1 [file]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/rust:defs.bzl", "rustc_proc_macro")
package(default_applicable_licenses = ["//:license"])
rustc_proc_macro(
name = "macro",
srcs = [
"src/derive_reference_doc.rs",
"src/lib.rs",
],
crate_name = "reference_doc_macro",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = ["//tools/lib/reference_doc:__pkg__"],
deps = [
"//third_party/rust_crates/vendor:darling",
"//third_party/rust_crates/vendor:proc-macro2",
"//third_party/rust_crates/vendor:quote",
"//third_party/rust_crates/vendor:syn",
],
)