| # 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/package.gni") |
| import("//build/rust/rustc_library.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_library("ethernet") { |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//garnet/lib/rust/fidl_fuchsia_hardware_ethernet_ext", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fdio", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-runtime", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//garnet/public/rust/shared-buffer", |
| "//third_party/rust_crates:bitflags", |
| "//third_party/rust_crates:failure", |
| "//third_party/rust_crates:futures-preview", |
| "//zircon/public/fidl/fuchsia-hardware-ethernet:fuchsia-hardware-ethernet-rustc", |
| ] |
| } |
| |
| unittest_package("ethernet-tests") { |
| deps = [ |
| ":ethernet_test", |
| ] |
| |
| tests = [ |
| { |
| name = "ethernet_lib_test" |
| environments = basic_envs |
| }, |
| ] |
| } |