blob: 8e314eb7b1e4d862b428c2d4fc46acb7d078633d [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"
edition = "2021"
# [START deps]
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples_rust",
"//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]