| # Copyright 2023 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-fidl-ext") { |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.wlan.softmac:fuchsia.wlan.softmac_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:itertools", |
| "//third_party/rust_crates:paste", |
| ] |
| |
| test_deps = [ |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:test-case", |
| ] |
| |
| sources = [ |
| "src/lib.rs", |
| "src/responder_ext.rs", |
| "src/send_result_ext.rs", |
| "src/tests.rs", |
| "src/try_unpack.rs", |
| ] |
| } |
| |
| fuchsia_unittest_package("wlan-fidl-ext-tests") { |
| deps = [ ":wlan-fidl-ext_test" ] |
| } |