| # Copyright 2024 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_multicast_ext") { |
| with_unit_tests = true |
| edition = "2021" |
| deps = [ |
| "//sdk/fidl/fuchsia.net.multicast.admin:fuchsia.net.multicast.admin_rust", |
| "//src/connectivity/lib/net-types", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/network/fidl_fuchsia_net_ext", |
| ] |
| test_deps = [ |
| "//sdk/fidl/fuchsia.net:fuchsia.net_rust", |
| "//src/connectivity/lib/net-declare", |
| "//third_party/rust_crates:test-case", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| |
| configs -= [ "//build/config/rust/lints:allow_unused_results" ] |
| } |
| |
| fuchsia_unittest_package("fidl-fuchsia-net-multicast-ext-tests") { |
| deps = [ ":fidl_fuchsia_net_multicast_ext_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ |
| ":fidl-fuchsia-net-multicast-ext-tests", |
| ":fidl_fuchsia_net_multicast_ext_test($host_toolchain)", |
| ] |
| } |