| # 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_library.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_library("wlan-common") { |
| name = "wlan_common" |
| version = "0.1.0" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/wlan/fidl:sme-rustc", |
| "//garnet/public/rust/zerocopy", |
| "//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc", |
| "//src/connectivity/wlan/lib/bitfield:wlan-bitfield", |
| "//third_party/rust_crates:byteorder", |
| "//third_party/rust_crates:bytes", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:nom", |
| "//third_party/rust_crates:num", |
| "//third_party/rust_crates:num-derive", |
| "//third_party/rust_crates:num-traits", |
| ] |
| } |
| |
| test_package("wlan-common-tests") { |
| deps = [ |
| ":wlan-common_test", |
| ] |
| |
| tests = [ |
| { |
| name = "wlan_common_lib_test" |
| environments = basic_envs |
| }, |
| ] |
| } |