blob: acea9e2617f28d7234cb9a3bc2fe797284960bad [file] [log] [blame]
# Copyright 2020 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")
rustc_binary("bin") {
name = "fidl_echo_rust_service_client"
edition = "2018"
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("echo-client") {
manifest = "client.cmx"
deps = [ ":bin" ]
}
fuchsia_package("client") {
package_name = "echo-rust-service-client"
deps = [ ":echo-client" ]
}