blob: 1328648925acd8e37124839773b1b25342bd8fa6 [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"])
rustc_library(
name = "lib",
srcs = [
"src/from_toolbox.rs",
"src/host_ssh_addr.rs",
"src/lib.rs",
"src/nodename.rs",
"src/remote_control_proxy.rs",
"src/ssh_addr.rs",
"src/target_info_query.rs",
"src/with_moniker.rs",
],
crate_name = "target_holders",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
visibility = [
"//src/connectivity/network/net-cli/ffx:__pkg__",
"//src/connectivity/network/testing/network-test-realm/ffx:__pkg__",
"//src/developer/ffx:__subpackages__",
"//src/power/tools/cli:__pkg__",
],
deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain",
"//src/developer/ffx/command/error:lib",
"//src/developer/ffx/lib/discovery:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/safe_string:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/target/behavior:lib",
"//src/lib/fdomain/client",
"//src/lib/fuchsia-async",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:log",
],
)
host_rustc_test(
name = "lib_test",
crate = ":lib",
crate_name = "target_holders_lib_test",
edition = "2024",
visibility = ["//src/developer/ffx:__pkg__"],
deps = ["//third_party/rust_crates/vendor:assert_matches"],
)