blob: 6ff522d0f603cb2dd6887a4e67482fedcda306dd [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fidl_fuchsia_net_stack_ext") {
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet-rustc",
"//sdk/fidl/fuchsia.net:fuchsia.net-rustc",
"//sdk/fidl/fuchsia.net.stack:fuchsia.net.stack-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/network/fidl_fuchsia_hardware_ethernet_ext",
"//src/lib/network/fidl_fuchsia_net_ext",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bitflags",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//src/connectivity/lib/net-declare" ]
sources = [
"src/error.rs",
"src/lib.rs",
]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_unittest_package("fidl-fuchsia-net-stack-ext-tests") {
deps = [ ":fidl_fuchsia_net_stack_ext_test" ]
}