blob: dcc2024ac7c4fe5862d1a7fdd5915351b2aa7ced [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.
import("//build/rust/rustc_binary.gni")
import("//src/sys/build/components.gni")
rustc_binary("bin") {
name = "fidl_echo_rust_client"
edition = "2018"
# [START deps]
deps = [
"//examples/fidl/fuchsia.examples:fuchsia.examples-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
# [END deps]
sources = [ "src/main.rs" ]
}
fuchsia_component("echo-client") {
manifest = "client.cmx"
deps = [ ":bin" ]
}
fuchsia_package("client") {
package_name = "echo-rust-client"
deps = [ ":echo-client" ]
}