blob: c82dd1bbeb5cd24586c84f9e09e013986410f36b [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/components.gni")
import("//build/rust/rustc_binary.gni")
group("echo") {
testonly = true
deps = [
":bin",
":bin($host_toolchain)",
]
}
rustc_binary("bin") {
name = "overnet_echo"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc",
"//src/connectivity/overnet/lib/hoist",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/testing/fidl:placeholders-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
non_rust_deps = [ "//third_party/boringssl" ]
sources = [ "src/main.rs" ]
}
fuchsia_component("test-driver") {
component_name = "overnet-echo-test-driver"
deps = [ ":bin" ]
manifest = "meta/test-driver.cml"
}
fuchsia_component("server") {
component_name = "overnet-echo-server"
deps = [ ":bin" ]
manifest = "meta/server.cml"
}