blob: e20999e4721f56478437353f9900fb48561163f2 [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-rustc",
"//third_party/rust_crates:proc-macro2",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:syn",
]
}
}
rustc_macro("macro") {
name = "fuchsia_macro"
edition = "2021"
deps = [ ":transformer($host_toolchain)" ]
sources = [ "src/lib.rs" ]
}