blob: a4367ab25fe53b0d42af4b9ec2a41f7a9c116def [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/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/host_tests:host_rustc_test.bzl", "host_rustc_test")
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
test_suite(
name = "host_tests",
tests = [":ffx_component_run_test"],
visibility = ["//src/developer/ffx:__pkg__"],
)
rustc_library(
name = "lib",
srcs = [
"src/args.rs",
"src/lib.rs",
],
crate_name = "ffx_component_run",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = ["//src/developer/ffx/plugins/component:__pkg__"],
deps = [
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target/connector:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/developer/ffx/plugins/component/common:ffx_component",
"//src/developer/ffx/plugins/log:ffx_log",
"//src/developer/ffx/plugins/log:ffx_log_args",
"//src/diagnostics/lib/log-command:log-command_fdomain",
"//src/lib/fuchsia-url",
"//src/sys/lib/cm_rust",
"//src/sys/lib/component_debug:component_debug_fdomain",
"//src/sys/lib/moniker",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:argh",
"//third_party/rust_crates/vendor:futures",
],
)
host_rustc_test(
name = "ffx_component_run_test",
crate = ":lib",
)