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