blob: d942e95ebee71ad8ff4dc19c1bc2881fbafd9b40 [file] [log] [blame]
# Copyright 2022 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.
import("//build/rust/rustc_library.gni")
assert(is_host, "ffx_target is for use with the host toolchain only")
rustc_library("lib") {
name = "ffx_target"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust_fdomain",
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/connectivity/overnet/lib/circuit",
"//src/connectivity/overnet/lib/core",
"//src/developer/ffx/command/error:lib",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/core:lib",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/addr:lib",
"//src/developer/ffx/lib/compat_info:lib",
"//src/developer/ffx/lib/discovery:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/manual_targets:lib",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/target_errors:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/developer/ffx/lib/usb_driver_api:lib",
"//src/lib/fdomain/client",
"//src/lib/fdomain/local",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/versioning/version-history/rust/data",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-channel",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:futures-lite",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tokio",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:mockall",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/connection.rs",
"src/fdomain_transport.rs",
"src/fho.rs",
"src/fidl_pipe.rs",
"src/lib.rs",
"src/list.rs",
"src/resolve.rs",
"src/ssh_connector.rs",
"src/target_connector.rs",
"src/usb_connector.rs",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
group("target") {
deps = [ ":lib" ]
}