| # 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 = "2021" | |
| source_root = "src/proc_macros.rs" | |
| deps = [ | |
| "//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:allow_unused_results" ] | |
| with_unit_tests = true | |
| } |