blob: b2adf87baebd079f8c80fefa2e552f6fc1574a2d [file] [log] [blame] [edit]
# 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") {
edition = "2018"
name = "routing_failed_echo_server"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("echo_server") {
deps = [ ":bin" ]
manifest = "meta/echo_server.cml"
}
fuchsia_component("echo_server_bad") {
deps = [ ":bin" ]
check_references = false
manifest = "meta/echo_server_bad.cml"
}
group("echo_server_components") {
deps = [
":echo_server",
":echo_server_bad",
]
}