blob: 23c8bdff34b9e808db37e89debcbc8ab622a6147 [file]
# Copyright 2020 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.
import("//build/rust/rustc_macro.gni")
rustc_macro("netstack_testing_macros") {
edition = "2024"
source_root = "src/proc_macros.rs"
deps = [
"//third_party/rust_crates:either",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
test_deps = [ "//third_party/rust_crates:test-case" ]
sources = [ "src/proc_macros.rs" ]
configs += [ "//build/config/rust/lints:deny_unused_results" ]
with_unit_tests = true
}
group("tests") {
testonly = true
deps = [ ":netstack_testing_macros_test" ]
}