blob: 35029ba88b2260bf525e8cdd4c35f0162228e137 [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors
# 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_binary.gni")
import("//build/rust/rustc_library.gni")
group("tests") {
testonly = true
deps = [ "tests" ]
}
rustc_binary("bin") {
name = "enumeration_test_adapter"
testonly = true
with_unit_tests = true
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust",
"//sdk/fidl/fuchsia.test:fuchsia.test_rust",
"//sdk/fidl/fuchsia.test:rust_measure_tape_for_case",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_derive",
"//third_party/rust_crates:serde_json5",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("enumeration-test-adapter-component") {
testonly = true
component_name = "enumeration-test-adapter"
manifest = "meta/enumeration_test_adapter.cml"
deps = [ ":bin" ]
}
fuchsia_package("enumeration-test-adapter") {
testonly = true
deps = [ ":enumeration-test-adapter-component" ]
}