blob: 1be6a0ac9b19e372fddd7ef9f7c30bced5ecb103 [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("//src/developer/ffx/build:ffx_plugin.bzl", "ffx_plugin")
package(default_applicable_licenses = ["//:license"])
test_suite(
name = "tests",
target_compatible_with = HOST_OS_CONSTRAINTS,
tests = [":ffx_debug_connect_test"],
visibility = ["//src/developer/ffx:__pkg__"],
)
# GN ffx_debug_connect carries data_deps on the unmigrated GN-only zxdb target.
# @bazel2gn:raw_attribute:data_deps = [ "//src/developer/debug/zxdb" ]
ffx_plugin(
name = "ffx_debug_connect",
srcs = ["src/lib.rs"],
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates/vendor:argh",
],
args_srcs = ["src/args.rs"],
edition = "2024",
sdk_category = "not-yet-specified",
version = "0.1.0",
visibility = [
"//src/developer/ffx/plugins/debug:__pkg__",
"//src/developer/ffx/plugins/debug/fidlcat:__pkg__",
],
deps = [
"//sdk/fidl/fuchsia.debugger:fuchsia.debugger_rust_fdomain",
"//src/developer/debug/ffx_zxdb",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/sdk:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/agents:lib",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:signal-hook",
],
)
host_rustc_test(
name = "ffx_debug_connect_test",
crate = ":ffx_debug_connect",
)