blob: 287574135d96fada6291ea32e3af46530bbc1e0d [file] [log] [blame]
# Copyright 2021 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")
rustc_library("lib") {
name = "ffx_daemon_target"
edition = "2024"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/connectivity/overnet/lib/circuit",
"//src/connectivity/overnet/lib/core",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/daemon/core:lib",
"//src/developer/ffx/daemon/events: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/fastboot/connection_factory:lib",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/ssh:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/usb_driver_api:lib",
"//src/developer/ffx/lib/usb_fastboot_discovery:lib",
"//src/lib/analytics/rust:lib",
"//src/lib/async-utils",
"//src/lib/fuchsia-async",
"//src/lib/network/netsvc-proto",
"//src/lib/network/packet",
"//src/lib/versioning/version-history/rust/data",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:socket2",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:zerocopy",
]
test_deps = [
"//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:async-channel",
"//third_party/rust_crates:futures-lite",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/lib.rs",
"src/overnet/host_pipe.rs",
"src/overnet/mod.rs",
"src/overnet/usb.rs",
"src/overnet/vsock.rs",
"src/target.rs",
"src/target/identity.rs",
"src/target/update.rs",
"src/target_collection.rs",
"src/target_collection/tests/update.rs",
"src/zedboot.rs",
]
inputs = [ "test_data/supported_host_pipe.sh" ]
}
group("target") {
testonly = true
deps = [ ":lib($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}