| # 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/components.gni") | |
| import("//build/rust/rustc_library.gni") | |
| rustc_library("trf_codegen_runtime") { | |
| testonly = true | |
| edition = "2024" | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", | |
| "//sdk/fidl/fuchsia.testing.harness:fuchsia.testing.harness_rust", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-fs", | |
| "//src/testing/trf_codegen/fidl:fuchsia.trf.factory_rust", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| ] | |
| test_deps = [ | |
| "//src/lib/fuchsia", | |
| "//src/lib/fuchsia-async", | |
| ] | |
| sources = [ "src/lib.rs" ] | |
| } | |
| fuchsia_unittest_package("trf_codegen_runtime_tests") { | |
| deps = [ | |
| ":trf_codegen_runtime_test", | |
| "//src/lib/fuchsia-component-test/realm_builder_server:realm_builder_server_component", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":trf_codegen_runtime_tests" ] | |
| } |