blob: b8088302e0ba817184230097b0ba4772d788a581 [file] [log] [blame]
# Copyright 2023 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/host.gni")
import("//build/rust/rustc_binary.gni")
import("//build/sdk/sdk_host_tool.gni")
rustc_binary("funnel_bin") {
output_name = "funnel"
edition = "2021"
sources = [
"src/logging.rs",
"src/main.rs",
"src/ssh.rs",
"src/target.rs",
]
with_unit_tests = true
deps = [
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/addr:lib",
"//src/developer/ffx/lib/logging:lib",
"//src/developer/ffx/lib/mdns_discovery:lib",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:tracing",
"//third_party/rust_crates:tracing-subscriber",
]
test_deps = [
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:pretty_assertions",
]
}
group("funnel") {
testonly = true
deps = [
":funnel_bin($host_toolchain)",
":funnel_bin_test($host_toolchain)",
]
}
sdk_host_tool("funnel_sdk") {
category = "partner"
output_name = "funnel"
deps = [ ":funnel_bin" ]
}
install_host_tools("host") {
deps = [ ":funnel_bin" ]
outputs = [ "funnel" ]
}