blob: 678088011bcef57a43ee250e9f197eaf5d039385 [file] [log] [blame]
# Copyright 2018 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/package.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("echo_server_rust_bin") {
name = "echo_server_rust"
edition = "2018"
deps = [
"//garnet/examples/fidl/services:echo-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
}
package("echo_server_rust") {
deps = [ ":echo_server_rust_bin" ]
binaries = [
{
name = "echo_server_rust"
dest = "echo_server"
},
]
meta = [
{
path = rebase_path("../meta/echo_server.cmx")
dest = "echo_server_rust.cmx"
},
]
}