blob: fb8ec4e0ee689f8a36deeb5f46f99a63b52b015c [file] [log] [blame] [edit]
# 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_bin") {
name = "echo_client_rust"
edition = "2018"
deps = [
"//examples/fidl/legacy/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:argh",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
resource("echo_client_file") {
sources = [ "${root_build_dir}/echo_client_rust" ]
outputs = [ "bin/echo_client" ]
deps = [ ":echo_client_rust_bin" ]
# data_deps is necessary to include shared libraries in package.
data_deps = [ ":echo_client_rust_bin" ]
}
fuchsia_package_with_single_component("echo_client_rust") {
manifest = "../meta/echo_client.cmx"
deps = [ ":echo_client_file" ]
}