blob: b40313f816780836b9094bb293a883c662f30d75 [file] [log] [blame] [edit]
# 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"
edition = "2021"
# [START deps]
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples-rustc",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
# [END deps]
sources = [ "src/main.rs" ]
}
# [START rest]
fuchsia_component("echo-client") {
component_name = "echo_client"
manifest = "meta/client.cml"
deps = [ ":bin" ]
}
# [END rest]