blob: af035f07f336124830349d86be47c544055bf781 [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.
load("//build/bazel/rules/rust:rustc_binary.bzl", "rustc_binary")
package(default_applicable_licenses = ["//:license"])
# Create a test wrapper that drives example apps either by connecting to
# ViewProvider implemented by the app, or by starting the app via Binder
# when the app presents itself via GraphicalPresenter.
rustc_binary(
name = "bin",
testonly = True,
srcs = ["src/ui_app_instrumentor.rs"],
binary_name = "ui_app_instrumentor",
crate_root = "src/ui_app_instrumentor.rs",
edition = "2024",
visibility = ["//src/testing/system-validation/web:__pkg__"],
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//sdk/fidl/fuchsia.session.scene:fuchsia.session.scene_rust",
"//sdk/fidl/fuchsia.ui.app:fuchsia.ui.app_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/ui/fuchsia-scenic",
"//src/testing/system-validation:system_validation_lib",
"//third_party/rust_crates/vendor:argh",
"//third_party/rust_crates/vendor:log",
],
)