blob: ec161b57162073f2be60f6a841a02fd5ee731c6e [file] [log] [blame]
# Copyright 2022 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_library.gni")
import("//build/rust/rustc_macro.gni")
if (is_host) {
rustc_library("transformer") {
edition = "2021"
source_root = "src/transformer.rs"
sources = [ "src/transformer.rs" ]
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//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",
]
}
}
rustc_macro("macro") {
name = "fuchsia_macro"
edition = "2021"
deps = [ ":transformer($host_toolchain)" ]
sources = [ "src/lib.rs" ]
}