blob: 6266b3d62f6027422989efe24b8a3fa586ef07db [file] [log] [blame]
# Copyright 2019 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("ip-test-macro") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
# FIXME(https://fxbug.dev/332277415): Please update to syn 2.x.
# "//third_party/rust_crates:syn",
"//third_party/rust_crates:syn-v1_0_98",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
group("tests") {
testonly = true
deps = [ ":ip-test-macro_test" ]
public_deps = [ "test:tests" ]
}