| # 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/package.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| rustc_library("wlan-common") { |
| name = "wlan_common" |
| version = "0.1.0" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/public/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc", |
| "//garnet/lib/wlan/fidl:sme-rustc", |
| "//garnet/public/rust/zerocopy", |
| "//third_party/rust-crates/rustc_deps:bitfield", |
| "//third_party/rust-crates/rustc_deps:byteorder", |
| "//third_party/rust-crates/rustc_deps:failure", |
| "//third_party/rust-crates/rustc_deps:num", |
| ] |
| } |
| |
| package("wlan-common-tests") { |
| testonly = true |
| |
| deps = [ |
| ":wlan-common", |
| ] |
| |
| tests = [ |
| { |
| name = "wlan_common_lib_test" |
| }, |
| ] |
| } |