| # 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") |
| |
| 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.overnet.protocol:fuchsia.overnet.protocol_rust", |
| "//src/connectivity/overnet/lib/hoist", |
| "//src/developer/ffx/config:lib", |
| "//src/developer/ffx/lib/daemonize:lib", |
| "//src/developer/ffx/lib/errors: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:futures", |
| "//third_party/rust_crates:nix", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:tracing", |
| ] |
| |
| sources = [ |
| "src/config.rs", |
| "src/constants.rs", |
| "src/lib.rs", |
| "src/socket.rs", |
| ] |
| inputs = [ "data/config.json" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":lib_test", |
| "core:tests", |
| "events:tests", |
| "protocols:tests", |
| "proxy:tests", |
| "server:tests", |
| ] |
| |
| # 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" ] |
| } |
| } |