| # Copyright 2018 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("echo_client_rust_synchronous_bin") { |
| name = "echo_client_rust_synchronous" |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/examples/fidl/services:echo-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| resource("echo_client_file") { |
| sources = [ "${root_build_dir}/echo_client_rust_synchronous" ] |
| outputs = [ "bin/echo_client" ] |
| deps = [ ":echo_client_rust_synchronous_bin" ] |
| |
| # data_deps is necessary to include shared libraries in package. |
| data_deps = [ ":echo_client_rust_synchronous_bin" ] |
| } |
| |
| fuchsia_package_with_single_component("echo_client_rust_synchronous") { |
| manifest = "../meta/echo_client.cmx" |
| deps = [ ":echo_client_file" ] |
| } |