blob: dc809683593ae42e230a16c96a6458c51e157223 [file] [log] [blame] [edit]
# Copyright 2019 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")
if (is_host) {
rustc_library("lib") {
name = "ffx_daemon"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.ffx:fuchsia.developer.ffx_rust",
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet_rust",
"//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol_rust",
"//src/connectivity/overnet/lib/ascendd",
"//src/connectivity/overnet/lib/hoist",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/daemon/core:lib",
"//src/developer/ffx/daemon/events:lib",
"//src/developer/ffx/daemon/protocols:ffx_daemon_protocols_lib",
"//src/developer/ffx/daemon/target:lib",
"//src/developer/ffx/lib/daemonize:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/metrics:lib",
"//src/developer/ffx/lib/protocols:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/stream_util:lib",
"//src/developer/ffx/lib/version:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:notify",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//src/developer/ffx/lib/addr:lib",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures-lite",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/constants.rs",
"src/daemon.rs",
"src/lib.rs",
"src/socket.rs",
]
inputs = [ "data/config.json" ]
}
}
group("tests") {
testonly = true
deps = [
":lib_test($host_toolchain)",
"core:tests($host_toolchain)",
"events:tests($host_toolchain)",
"protocols:tests($host_toolchain)",
"proxy:tests($host_toolchain)",
]
# TODO(https://fxbug.dev/113700): Flaky test disabled on coverage.
# Please fix the flake and remove the condition below.
if (!is_coverage) {
deps += [ "target:tests($host_toolchain)" ]
}
}