blob: a1fbdb996951cea33d05008c0eb4d036dca13e83 [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.
# [START imports]
import("//build/components.gni")
import("//build/rust/rustc_binary.gni")
# [END imports]
rustc_binary("bin") {
name = "fidl_echo_rust_client_sync"
edition = "2021"
# [START deps]
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples_rust",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
]
# [END deps]
sources = [ "src/main.rs" ]
}
# [START rest]
fuchsia_component("echo-client") {
component_name = "echo_client"
manifest = "meta/client.cml"
deps = [ ":bin" ]
}
# [END rest]