blob: fae4272aa821afb995e6fe9a752abf9b5dd489fd [file]
# Copyright 2026 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_binary.gni")
if (is_host) {
rustc_binary("trf_codegen_bin") {
edition = "2024"
with_unit_tests = true
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:handlebars",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:syn",
]
sources = [
"src/consistency_checker.rs",
"src/generator.rs",
"src/main.rs",
"src/parser.rs",
]
}
}
group("tests") {
testonly = true
deps = [ ":trf_codegen_bin_test($host_toolchain)" ]
}