blob: 83205cf86035d0dd33df3fbd22be2ff262899563 [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fidl_fuchsia_net_interfaces_ext") {
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.hardware.network:fuchsia.hardware.network-rustc",
"//sdk/fidl/fuchsia.net:fuchsia.net-rustc",
"//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces-rustc",
"//sdk/fidl/fuchsia.net.interfaces.admin:fuchsia.net.interfaces.admin-rustc",
"//src/connectivity/lib/net-types",
"//src/lib/async-utils",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl_table_validation",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//sdk/fidl/fuchsia.hardware.network:fuchsia.hardware.network-rustc",
"//src/connectivity/lib/net-declare",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:test-case",
]
sources = [
"src/admin.rs",
"src/lib.rs",
"src/reachability.rs",
]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_unittest_package("fidl-fuchsia-net-interfaces-ext-tests") {
deps = [ ":fidl_fuchsia_net_interfaces_ext_test" ]
}