blob: 3134fd2ff14eea94f6dbca5a06d2b98d27618d01 [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("wlan-service-util") {
with_unit_tests = true
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common_rust",
"//sdk/fidl/fuchsia.wlan.common.security:fuchsia.wlan.common.security_rust",
"//sdk/fidl/fuchsia.wlan.device.service:fuchsia.wlan.device.service_rust",
"//sdk/fidl/fuchsia.wlan.ieee80211:fuchsia.wlan.ieee80211_rust",
"//sdk/fidl/fuchsia.wlan.internal:fuchsia.wlan.internal_rust",
"//sdk/fidl/fuchsia.wlan.sme:fuchsia.wlan.sme_rust",
"//src/connectivity/wlan/lib/common/rust:wlan-common",
"//src/connectivity/wlan/lib/ieee80211",
"//src/lib/fidl/rust/fidl",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:rand",
]
sources = [
"src/ap.rs",
"src/client.rs",
"src/lib.rs",
]
}
fuchsia_unittest_package("wlan-service-util-tests") {
deps = [ ":wlan-service-util_test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}