blob: 6234b67714201f279b966decdd31b3744263a650 [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")
assert(is_host,
"ffx_daemon_protocol_forward is for use with the host toolchain only")
rustc_library("ffx_daemon_protocol_forward") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/protocols:lib",
"//src/developer/ffx/lib/target_net:lib",
"//src/developer/ffx/lib/tasks:lib",
"//src/lib/network/fidl_fuchsia_net_ext",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tokio",
]
test_deps = [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
sources = [ "src/lib.rs" ]
}
group("tests") {
testonly = true
deps = [ ":ffx_daemon_protocol_forward_test" ]
}