blob: 886c7a271fd92bf50eb24edf3b1997bcabc792cf [file] [log] [blame]
# 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 (host_toolchain == current_toolchain) {
rustc_library("lib") {
name = "ffx_daemon"
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.bridge:fuchsia.developer.bridge-rustc",
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol-rustc",
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc",
"//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol-rustc",
"//src/connectivity/overnet/lib/hoist",
"//src/connectivity/overnet/tools/ascendd:lib",
"//src/developer/development-bridge:command_lib",
"//src/developer/development-bridge/config:lib",
"//src/developer/development-bridge/core:lib",
"//src/developer/development-bridge/fastboot:lib",
"//src/lib/fidl/rust/fidl",
"//src/lib/mdns/rust:mdns",
"//src/lib/network/packet",
"//src/lib/zerocopy",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-std",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:log",
"//third_party/rust_crates:simplelog",
"//third_party/rust_crates:socket2",
"//third_party/rust_crates:thiserror",
]
# TODO: remove this dep once Overnet is on async-std also.
deps += [ "//src/connectivity/overnet/lib/core" ]
}
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}