blob: fd0c5c28611e593cb600595476d6eaf0835605d3 [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/rust/rustc_binary.gni")
import("//src/sys/build/fuchsia_component.gni")
import("//src/sys/build/fuchsia_package.gni")
rustc_binary("bin") {
name = "enclosed_runner"
edition = "2018"
testonly = true
deps = [
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet-rustc",
"//sdk/fidl/fuchsia.net:fuchsia.net-rustc",
"//sdk/fidl/fuchsia.net.icmp:fuchsia.net.icmp-rustc",
"//sdk/fidl/fuchsia.net.stack:fuchsia.net.stack-rustc",
"//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/network/fidl_fuchsia_net_stack_ext",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:structopt",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("component") {
testonly = true
component_name = "enclosed-runner"
deps = [ ":bin" ]
manifest = "meta/enclosed_runner.cmx"
}
fuchsia_package("netstack3-enclosed-runner") {
testonly = true
deps = [ ":component" ]
}
group("enclosed_runner") {
testonly = true
deps = [ ":netstack3-enclosed-runner" ]
}