blob: ce4617c7b583cf4f9a14eb08a95b1c41a41c9264 [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/rust/rustc_binary.gni")
import("//build/package.gni")
rustc_binary("bin") {
name = "recovery_netstack"
edition = "2018"
with_unit_tests = true
deps = [
"core:netstack-core",
"//garnet/lib/rust/ethernet",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//third_party/rust-crates/rustc_deps:byteorder",
"//third_party/rust-crates/rustc_deps:failure",
"//third_party/rust-crates/rustc_deps:futures-preview",
"//third_party/rust-crates/rustc_deps:log",
]
}
package("recovery_netstack") {
deprecated_bare_package_url = "//build"
deps = [
":bin",
]
binaries = [{
name = "recovery_netstack"
}]
meta = [
{
path = rebase_path("meta/recovery_netstack.cmx")
dest = "recovery_netstack.cmx"
},
]
}
package("recovery_netstack_tests") {
testonly = true
deps = [
":bin",
"core:netstack-core",
]
tests = [
{
name = "recovery_netstack_bin_test"
},
{
name = "netstack_core_lib_test"
},
]
}