| # 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_service_server" |
| edition = "2018" |
| |
| deps = [ |
| "//examples/fidl/fuchsia.examples:fuchsia.examples-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-runtime", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| fuchsia_component("echo-server") { |
| manifest = "server.cmx" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_package("server") { |
| package_name = "echo-rust-service-server" |
| deps = [ ":echo-server" ] |
| } |