blob: f8bd070edcf1ddbfcfd2ccaea91ed5f757f20357 [file] [log] [blame]
# Copyright 2019 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")
group("echo") {
testonly = true
deps = [
":bin",
":overnet-echo",
]
}
rustc_binary("bin") {
name = "overnet_echo"
edition = "2018"
deps = [
"//garnet/examples/fidl/services:echo-rustc",
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fdio",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc",
"//third_party/rust_crates:clap",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
]
}
package("overnet-echo") {
deps = [
":bin",
]
binary = "rust_crates/overnet_echo"
meta = [
{
path = rebase_path("../meta/overnet_example.cmx")
dest = "echo.cmx"
},
]
}