blob: 8fda2a238df3394744795cbbf7485bcdfe651e8b [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/rust/rustc_binary.gni")
import("//src/sys/build/components.gni")
rustc_binary("bin") {
name = "network_device"
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device-rustc",
"//src/connectivity/network/testing/netemul/lib/fidl:network-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
]
sources = [ "src/main.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_component("network_device") {
component_name = "network-device"
manifest = "meta/network-device.cmx"
testonly = true
deps = [ ":bin" ]
}